How can the display of CC Menu Items be customized for different users?
A. cc_hk_Category extension to pre-process which category items are cached as menu items
B. cc_hk_Menu extension to post-process any cached menu items
C. cc_hk_Menu extension to pre-process which menu items are cached
D. cc_hk_Category extension to post-process any cached menu items
Explanation:
The display of CC Menu Items can be customized for different users by using the
cc_hk_Menu extension to post-process any cached menu items. This extension allows
modifying the menu items based on the user context, such as the user role, account, or
cart. For example, the extension can hide or show certain menu items based on the user’s
permissions or preferences.
A developer needs to create a scheduled job in another system to move data into the B2B Commerce org. How can the developer do this without additional third party tools?
A. Install a minimal set of dev tools on a machine such as the Command Line Interface (CLI) and create appropriate scripts to import files containing the data
B. Set up an SFTP server as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file
C. Set up WebDAV with SFTP as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file
D. Create a job in the org (on-platform) to drop a file of existing data, Use the off-platform machine to generate a file and identify the details between the two, Push the changes to the org's "Import" directory
Explanation:
Option B is the correct answer because it describes a way to create a
scheduled job in another system to move data into the B2B Commerce org without
additional third party tools. The developer can set up an SFTP server as a waystation, drop
the files there using the off-platform job and schedule a job in-platform to process the file.
This way, the developer can use the built-in integration capabilities of the B2B Commerce
platform, such as the Windows Integration Service (WIS) or the Integration Job Definitions,
to import the data from the SFTP server into the org. The other options are incorrect
because they either require additional third party tools, such as WebDAV or CLI, or they do
not create a scheduled job in another system, but rather in the same
org. References: Creating and editing integration jobs, Create a B2B Commerce Org and
Checkout Flow, B2B Commerce on Lightning Experience Developer Guide, B2B
Commerce and D2C Commerce Developer Guide
A Developer created a custom field that a project wants to expose on a given page. How does the Developer ensure that the field is available to display on a given page?
A. Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.
B. Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class
C. Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
D. Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
Explanation:
To ensure that a custom field is available to display on a given page, the Developer needs
to override the Service Class that the page uses and update the Service Management in
CCAdmin for the given storefront to use this new Service Class. The Service Class is
responsible for retrieving and setting data for a given page. The Logic Class is responsible
for implementing business logic and validation rules for a given page. Creating a new
Service Class or Logic Class is not necessary, as overriding an existing one can achieve
the same result. Salesforce References: B2B Commerce and D2C Commerce Developer
Guide, Service Classes, Logic Classes
Which three are considered code units, or discrete units of work within a transaction in the debug logs?
A. Validation rule
B. .Apex class
C. Web service invocation
D. Lightning component load
E. Workflow invocations
Explanation:
In the context of Salesforce debug logs, code units represent discrete units
of work within a transaction. Apex classes (B), Web service invocations (C), and Workflow
invocations (E) are considered code units as they encapsulate specific operations or sets
of logic that can be executed as part of a transaction. Validation rules (A) and the loading of
Lightning components (D) are not considered discrete units of work in the same way, as
they are part of the declarative interface and front-end framework, respectively. For more
details on how Salesforce handles transactions and debug logs, refer to the Salesforce
Developer Documentation:Salesforce Developer Documentation on Transactions and
Debug Logs.
Which event should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page?
A. showMessage
B. displayPageMessage
C. displayMessage
D. pageMessage
Explanation:
The event that should be triggered when user facing info, warning or error messages need
to be displayed on a Visualforce page is pageMessage. This event is triggered by the
displayPageMessage method of the CCRZ.util class, which is a utility class that provides
various helper methods for common tasks. The event can be used to display a message on
the page with a specified type, title, and text.
For
example, CCRZ.util.displayPageMessage('error', 'Oops!', 'Something went wrong.') will
trigger the pageMessage event and display an error message on the page.
Salesforce
References: B2B Commerce and D2C Commerce Developer Guide, Events, Util Class
Page 8 out of 43 Pages |
Previous |