A query containing a subquery is executed. What is appended to the subquery name
as part of its transformation by default in Salesforce B2B Commerce?
A. A subscriber-supplied token
B. "__ccrz"
C. The "*" symbol
D. The letter "S"
Explanation:
A query containing a subquery is executed. By default, in Salesforce B2B Commerce,
“__ccrz” is appended to the subquery name as part of its transformation. This is done to
avoid conflicts with the standard Salesforce fields and relationships. For example, SELECT
Id, Name, (SELECT Id, Name FROMContacts) FROM Account will be transformed
to SELECT Id, Name, (SELECT Id, Name FROM Contacts__ccrz) FROM Account__ccrz.
Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Query
Transformation
Which category can receive signaling from a Lightning Message Channel?
A. only descendents (i.e. children)
B. only direct siblings
C. page (anywhere on it)
D. only ancestors (i.e. parents)
Explanation:
A Lightning Message Channel can receive signaling from any component on
a page (anywhere on it). A Lightning Message Channel is a service that allows components
to communicate with each other across different Salesforce UI technologies, such as Aura,
LWC, Visualforce, and Lightning web apps. A component can subscribe to a message
channel and receive events that are published by another component on the same or
different page. The message channel acts as a mediator that delivers the events to the
subscribers. A Lightning Message Channel does not receive signaling only from
descendants (i.e., children), only from direct siblings, or only from ancestors (i.e., parents),
as these are limitations of event-based communication.
Salesforce References: [Lightning
Web Components Developer Guide: Communicate Across Salesforce UI Technologies],
[Lightning Web Components Developer Guide: Communicate with Events]
In a B2B Commerce store, which three tasks must a developer complete to implement the use of a third-party service for either tax, shipping, or pricing calculation?
A. Register an Apex class as the integration in the store administration
B. Create a flow to call the external service directly
C. Create an Apex class implementing the appropriate interface.
D. Create a named credential for authentication with an external service
E. Create an Apex class with an invocable method
Explanation:
To implement the use of a third-party service for either tax, shipping, or
pricing calculation in a B2B Commerce store, a developer must complete these three tasks:
Create an Apex class that implements the appropriate interface for the calculation
type. For example, for tax calculation, the developer must implement the
sfdc_checkout.CartTax interface and define the getTax method. This method takes
a Cart object as an input parameter and returns a list of CartTax objects with the
calculated tax amounts.
Create a named credential for authentication with the external service. A named
credential specifies the URL of a callout endpoint and its required authentication
parameters. The developer can use the named credential in the Apex class to
make the callout to the external service and handle the response.
Register the Apex class as the integration in the store administration. The
developer must specify the Apex class name in the corresponding field for the
calculation type. For example, for tax calculation, the developer must enter the
Apex class name in the Tax Calculation Integration field. This way, the store can
invoke the Apex class to perform the calculation for each cart.
The other options are not valid tasks for implementing the use of a third-party service.
Creating a flow to call the external service directly is not supported for B2B Commerce, and
creating an Apex class with an invocable method is not required for the calculation
integration.
References:
Integrate with External Services
CartTax Interface
Named Credentials
[Store Administration]
The ccUtil apex class in Salesforce B2B Commerce provides numerous utility functions that can be leveraged in subscriber classes. What are two ways to check the input or return data of the Global API's? (2 answers)
A. ccrz.ccUtil.isNotEmpty(Map
B. ccrz.ccUtil.isNotValid(Map
C. ccrz.ccUtil.isValid(Map
D. ccrz.ccUtil.isEmpty(Map
Explanation:
The ccUtil apex class provides two methods to check the input or return data of the Global
API’s: ccrz.ccUtil.isNotEmpty(Map
Which three files are required for a deployable Lightning Web Component called displayMyData that will fetch and display data?
A. displayMyData.css
B. displayMyData.js-meta.xml
C. displayMyData.js
D. displayMyDataController.cls
E. displayMyData.html
Explanation:
For a deployable Lightning Web Component likedisplayMyData, the
required files include the component's CSS file (displayMyData.css) for styling, the
metadata configuration file (displayMyData.js-meta.xml) for defining the component's
configuration and properties, and the template file (displayMyData.html) for the
component's HTML structure. The JavaScript file (displayMyData.js) contains the business
logic but is not listed as an option here. For deployment, these files are essential. Refer to
the Salesforce LWC documentation for deployment requirements:Salesforce LWC
Deployment Documentation.
Page 16 out of 43 Pages |
Previous |