For which two reasons is it preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager (2 answers)

For which two reasons is it preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager (2 answers)
A . A standard remote action will not have access to Salesforce B2B Commerce objects.
B . The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object.
C . Salesforce B2B Commerce includes do not support standard SalesForce remote actions.
D . The Salesforce B2B Commerce logger cannot be utilized in standard remote actions

Answer: B,D

Explanation:

It is preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager for two reasons:

The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object, which contains useful information such as the current user, cart, storefront, and configuration settings. This can simplify the development and testing of the remote action.

The Salesforce B2B Commerce logger can be utilized in the remote action, which allows logging messages and errors to the debug log or to a custom object. This can facilitate debugging and troubleshooting of the remote action.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments