ExamGecko
Question list
Search
Search

Question 56 - Certified B2B Commerce Developer discussion

Report
Export

What is a method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class?

A.
ccrz.cc_CallContext.currUser.isGuest
Answers
A.
ccrz.cc_CallContext.currUser.isGuest
B.
ccrz.cc_CallContext.isGuest
Answers
B.
ccrz.cc_CallContext.isGuest
C.
UserInfo.getUserType()
Answers
C.
UserInfo.getUserType()
D.
... UserType
Answers
D.
... UserType
Suggested answer: B

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

Reference:B2B Commerce and D2C Commerce Developer Guide,Call Context

asked 23/09/2024
Arpita Pattnayak
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first