What is the fastest route to setting up a B2B Commerce Store as a developer?
A. Set up B2B Commerce on Lightning Experience manually
B. Create a new store in the Commerce app
C. Import a previously exported store archive
D. Use sfdx setup scripts
Explanation:
The fastest route to setting up a B2B Commerce store as a developer is to
use sfdx setup scripts. Sfdx setup scripts are scripts that use Salesforce CLI commands to
automate the creation and configuration of a B2B Commerce store. The scripts can
perform tasks such as creating scratch orgs, installing packages, importing data, assigning
permissions, and deploying code. The scripts can save time and effort for developers who
need to set up a B2B Commerce store quickly and easily. Setting up B2B Commerce on
Lightning Experience manually is not the fastest route to setting up a B2B Commerce store,
as it involvesmany steps and actions that can be tedious and error-prone. Creating a new
store in the Commerce app is not the fastest route either, as it also requires manual
configuration and customization of various settings and features. Importing a previously
exported store archive is not the fastest route either, as it depends on the availability and
quality of the store archive and may not reflect the latest changes or updates. Salesforce
References: [B2B Commerce Developer Guide: Set Up Your Development Environment],
[B2B Commerce Developer Guide: Create Your Store]
Where is the API-based record creation generally handled in Salesforce B2B Commerce?
A. In the methods available in extension hooks
B. The service-layer responsible for the entity
C. Data creation is not allowed
D. Logic classes that implement the businesslogic for create operations
Explanation:
The API-based record creation is generally handled in the service-layer responsible for the
entity in Salesforce B2B Commerce. The service-layer is a set of classes that provide
methods for interacting with the data layer and performing business logic. Each entity, such
as product, cart, or order, has a corresponding service class that handles the create, read,
update, and delete operations for that entity. For example, ccrz.ccServiceProduct provides
methods for creating and retrieving products. Salesforce References: B2B Commerce and
D2C Commerce Developer Guide, Service Classes
Which Global JavaScript Object should be extended when writing custom Remote Actions?
A. CCRZ.
B. CCRZ.cc
C. CCRZ.cc_CallContext
D. CCRZ.RemoteInvocation
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
References: B2B Commerce and D2C Commerce Developer Guide, Remote Actions
Which three data types are supported for custom fields while using CSV file format for importing data for a store?
A. Text Area(Long
B. Picklist (Multi-Select)
C. Lookup Relationship
D. Address
E. Currency
Explanation:
Three data types that are supported for custom fields while using CSV file format for
importing data for a store are Text Area(Long), Lookup Relationship, and Currency. A
custom field is a field that is added by a developer or an administrator to an object to store
additional information or data. A data type is a property that defines the type, format, and
validation rules of a field. A CSV file is a file format that stores tabular data in plain text
using commas to separate values. A store is a record that represents a B2B or B2C
storefront in Salesforce. Text Area(Long) is a data type that allows users to enter up to
131,072 characters on separate lines. Text Area(Long) is supported for custom fields while
using CSV file format for importing data for a store. Lookup Relationship is a data type that
allows users to create a relationship between two objects and select a value from another
record. Lookup Relationship is supported for custom fields while using CSV file format for
importing data for a store. Currency is a data type that allows users to enter currency
values and automatically convert them based on the user’s locale and currency settings.
Currency is supported for custom fields while using CSV file format for importing data for a
store. Picklist (Multi-Select) is a data type that allows users to select one or more values
from a predefined list of values. Picklist (Multi-Select) is not supported for custom fields
while using CSV file format for importing data for a store. Address is a data type that allows
users to enter address values and automatically format them based on the user’s locale
settings. Address is not supported for custom fields while using CSV file format for
importing data for a store.
Salesforce References: [Salesforce Help: Custom Field
Attributes], [Salesforce Help: Data Types], [Data Loader Guide: Import Data into
Salesforce], [B2B Commerce Developer Guide: Store Object]
What tool can a developer use to investigate errors during development?
A. Commerce Diagnostics Event Logging
B. Checkout Flow Log
C. Support cases
D. Browser dev tools
Explanation:
Browser dev tools are a set of web authoring and debugging tools built into
most modern browsers. They allow developers to inspect, edit, and debug the HTML, CSS,
JavaScript, and network activity of a web page. They can also provide useful information
about errors, warnings, performance, and accessibility issues. Browser dev tools are
especially helpful for developing and testing Lightning web components, as they can
display the component hierarchy, attributes, events, and slots.
The other options are not correct because:
A. Commerce Diagnostics Event Logging is a feature that enables developers to
capture and analyze events that occur during the execution of B2C Commerce
code. It can help identify performance bottlenecks, memory leaks, and unexpected
behavior. However, it is not a tool that can be used directly by the developer, but
rather a service that requires a support request to enable and access.
B. Checkout Flow Log is a log file that shows the details of the checkout flow
execution, such as the input and output parameters, the pipeline steps, and the
errors and warnings. It can help troubleshoot issues related to the checkout
process, such as payment, shipping, or tax calculation. However, it is not a tool
that can be used during development, but rather a log file that can be accessed
after the checkout flow has run.
C. Support cases are requests for assistance from the Salesforce support team.
They can help resolve technical issues, provide guidance, or escalate bugs.
However, they are not a tool that can be used to investigate errors during
development, but rather a communication channel that can be used after the
developer has exhausted other resources.
References:
Browser Dev Tools
Debug Your Lightning Web Components
Commerce Diagnostics Event Logging
[Checkout Flow Log]
Which two statements are accurate about the Cart Item with a Type of Charge?
A. It is created with the Cart Delivery Group Method after the shipping integration
B. It is created with the Cart Delivery Group Method after the freight integration
C. It is linked directly to a Cart Id
D. It is linked directly to a Catalog Id
Explanation:
Two statements that are accurate about the Cart Item with a Type of Charge
are that it is linked directly to a Cart Id and that it is linked directly to a Catalog Id. A Cart
Item with a Type of Charge is a special type of Cart Item that represents an additional
charge or fee that is applied to a Cart, such as shipping, handling, or tax. A Cart Item with a
Type of Charge is linked directly to a Cart Id, which means that it belongs to a specific Cart
and can be retrieved or updated along with other Cart Items. A Cart Item with a Type of
Charge is also linked directly to a Catalog Id, which means that it references a specific
Catalog that contains the products and prices for the store. A Cart Item with a Type of
Charge is not created with the Cart Delivery Group Method after the shipping integration or
after the freight integration, as these are not related to the creation of Cart Items. The Cart
Delivery Group Method is a method that determines how products are grouped into delivery
groups based on their shipping methods and addresses. The shipping integration and the
freight integration are integrations that calculate and apply shipping costs and freight
charges to a Cart or an Order.
Salesforce References: B2B Commerce Developer Guide:
Cart Item Object, B2B Commerce Developer Guide: Shipping Integration, B2B Commerce
Developer Guide: Freight Integration
A developer needs to bulk export all of the Product data from an org and does not have access to Data Loader or Workbench. However, the Command Line Interface (CLI) is available. Which command allows the developer to accomplish this task?
A. sfdx force:data:treeiexport -q
B. sfdx force:data:tree:export -Product2 -all
C. sfdx force:data:tree:export -o Product?
D. sfdxforce:data:tree:export -h
Explanation:
The Salesforce CLI command sfdx force:data:tree:export is used to export
data from an org into one or more JSON files1. The -q flag is used to specify the path to a
file containing a SOQL query, -x is used to specify the name of the exported file, -d is used
to specify the directory where the exported file will be saved, and -p is used to indicate that
all records returned by the SOQL query should be exported12. This command allows
developers to bulk export data from an org without needing access to Data Loader or
Workbench12. Therefore, option A is the correct answer. Please note that the actual SOQL
query and the directory path would need to be replaced with the appropriate values for the
specific use case.
What are three standard page reference types?
A. standard__app
B. standard__component
C. standard__pageNamed
D. comm_loginPage
E. standard__recordDetailPage
Explanation:
In Salesforce, standard page reference types are used within the Lightning
Component framework to reference different types of resources. The types include
standard__appfor Salesforce apps,standard__componentfor Lightning components, and
standard__recordPageto reference a specific record detail or edit page (not
standard__recordDetailPage, but it's implied). Thestandard__pageNamedand
comm_loginPageare not standard page reference types recognized by Salesforce. For
more details, refer to the Salesforce documentation on PageReference Types:Salesforce
PageReference Types Documentation.
What is a method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class?
A. ccrz.cc_CallContext.currUser.isGuest
B. ccrz.cc_CallContext.isGuest
C. UserInfo.getUserType()
D. UserType
Explanation:
A method to resolve if the current storefront customer is a Salesforce B2B Commerce
guest user in an apex class is to use ccrz.cc_CallContext.isGuest. This property will return
true if the current user is a guest user, or false otherwise. For
example, if(ccrz.cc_CallContext.isGuest){ // do something for guest user } will execute
some logic only for guest users. Salesforce References: B2B Commerce and D2C
Commerce Developer Guide, Call Context
Which technique can be used with Lightning web components to expose them outside of an org in another web container?
A. Slot elements
B. Heroku
C. Lightning Out
D. Lightning Canvas
Explanation:
According to the Lightning Web Components Developer Guide, Lightning Out
is a technique that allows developers to run Lightning web components outside of
Salesforce servers, such as in a Node.js app running on Heroku or a department server
inside the firewall. Lightning Out uses a script tag to load the Lightning web components
framework and the custom components into the web container. Lightning Out also handles
authentication, event handling, and data access between the web container and the
Salesforce org. Slot elements, Heroku, and Lightning Canvas are not techniques for
exposing Lightning web components outside of an org in another web
container.
References: Lightning Web Components Developer Guide, Use Components
Outside Salesforce, B2B Commerce and D2C Commerce Developer Guide
Page 5 out of 22 Pages |
Previous |