Which Global JavaScript Object should be extended when writing custom Remote Actions?

Which Global JavaScript Object should be extended when writing custom Remote Actions?
A . CCRZ.
B . CCRZ.cc
C . CCRZ.cc_CallContext
D . CCRZ.RemoteInvocation

Answer: B

Explanation:

The Global JavaScript Object that should be extended when writing custom Remote Actions is CCRZ.cc. This object contains all the Remote Actions that are defined in the cloudcraze managed package, which can be overridden or extended by subscriber code. The object also provides a mechanism for registering custom Remote Actions that can be invoked by the user interface components.

For example, CCRZ.cc.customAction = function(params, callback){ // do something } will define a custom Remote Action named customAction that can be called by CCRZ.cc.customAction(params, callback).

Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Remote Actions

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments