Exam B2B-Commerce-Developer Topic 2 Question 119 Discussion

Actual exam question for Salesforce's B2B-Commerce-Developer exam
Question #: 119
Topic #: 2
What is a method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class?

Suggested Answer: B Vote an answer

Explanation
A method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class is to use ccrz.cc_CallContext.isGuest. This property will return true if the current user is a guest user, or false otherwise. For example, if(ccrz.cc_CallContext.isGuest){ // do something for guest user } will execute some logic only for guest users. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Call Context

by Blithe at Jan 18, 2024, 09:13 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10