Exam B2B-Commerce-Developer Topic 2 Question 100 Discussion

Actual exam question for Salesforce's B2B-Commerce-Developer exam
Question #: 100
Topic #: 2
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)

Suggested Answer: B,C Vote an answer

Two guidelines for logging that are used within the core Salesforce B2B Commerce product are:
The close method of ccrz.ccLog must be called at the end of the remote action. This method will flush the log messages to the browser console or to a custom object, depending on the logging mode. If this method is not called, the log messages may not be displayed or saved properly.
No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed. This method will initialize the call context object, which contains information such as the current user, cart, storefront, and configuration settings. These information are required for logging, so calling ccrz.ccLog before initializing the call context will result in an error. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Logging

by Len at Jan 16, 2024, 09:47 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