Which three statements are true about Global API versioning? (3 answers)
Three statements that are true about Global API versioning are:
Calling in with an API version set to lower than 1 will result in an exceptional case where the exception class ccrz.BelowMinAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a higher API version.
The API version is scoped at the Class API level and NOT at the method level. This means that all the methods in a class will use the same API version that is specified by the caller. For example, if the caller passes an API version of 4 to ccrz.ccServiceProduct.getProducts(), then all the other methods in ccrz.ccServiceProduct will also use API version 4.
Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a lower API version. Salesforce Reference:B2B Commerce and D2C Commerce Developer Guide,API Versioning
Which handlebars helper expression is used in Salesforce B2B Commerce pages and
components to toggle the display of a block of markup?
The handlebars helper expression that is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup is {{#ifConfig 'Field__c'}} ... {{/ifConfig}}. This expression will evaluate the value of the configuration setting with the API name Field__c and render the block of markup if the value is true, or skip it if the value is false. For example,{{#ifConfig 'CO.showMiniCart'}}
Northern Trail Outfitters (NTO) has a requirement to schedule a reusable data import across multiple orgs for customer demo purposes. NTO also has a requirement to seed data of related objects---ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct--- while preserving its relationships and without purchasing additional licenses or using thirdparty tools.
What is the recommended tool a developer should select to address the requirement?
n:The Commerce Product Data Import resource is the recommended tool for importing products for a B2B or B2C store using a .csv file. This resource supports importing data of related objects, such as ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct, while preserving their relationships. It also does not require additional licenses or third-party tools. The other options are either not specific to Commerce products, or do not support importing data of related objects.Reference:
Commerce Product Import Resource
Import and Export Commerce Data
B2B and D2C Commerce Data Model
When a user buys 10 units of product B, the user wants 1 unit of Product A to be
automatically added to the cart. How can this requirement be fulfilled?
To automatically add 1 unit of Product A to the cart when a user buys 10 units of Product B, the requirement can be fulfilled by overriding the prepareToAdd method in ccrz.cc_api_CartExtension. This method is responsible for preparing the cart line items before they are added to the cart. By overriding this method, the user can check the quantity and product ID of the cart line items and add an additional cart line item for Product A if the condition is met. Salesforce Reference:B2B Commerce and D2C Commerce Developer Guide,API Classes,cc_api_CartExtension Class
Which two different types of services do Salesforce B2B
Two different types of services that Salesforce B2B Commerce APIs leverage are:
Logic services which are responsible for implementing business logic associated with entities. These services are defined in the logic classes, such as ccrz.ccLogicCart, ccrz.ccLogicOrder, or ccrz.ccLogicProduct. These classes provide methods for validating inputs, performing calculations, applying rules, or updating data for each entity.
Data services which are responsible for querying and transforming data from entities. These services are defined in the service classes, such as ccrz.ccServiceCart, ccrz.ccServiceOrder, or ccrz.ccServiceProduct. These classes provide methods for creating, reading, updating, and deleting data for each entity. Salesforce Reference:B2B Commerce and D2C Commerce Developer Guide,Service Classes,Logic Classes
Reference Implementations Perez
2 days agoAmy Rivera
21 days agoSusan Evans
11 days agoElizabeth Anderson
5 days agoDennis Torres
12 days agoMark Nguyen
21 hours agoHarold Flores
13 days agoLashawnda
1 month agoGalen
2 months agoMalcom
2 months agoKandis
2 months agoDoyle
2 months agoKattie
3 months agoTarra
3 months agoAlana
3 months agoOlen
3 months agoDenae
4 months agoTeresita
4 months agoShannan
4 months agoDong
4 months agoBreana
5 months agoRicarda
5 months agoEthan
5 months agoMatt
5 months agoPansy
6 months agoBroderick
6 months agoJunita
6 months agoRasheeda
6 months agoSusana
7 months agoWillodean
7 months agoLeoma
7 months agoAlisha
7 months agoRickie
8 months agoGlendora
8 months agoHoward
8 months agoCiara
8 months agoBrice
8 months agoLeonora
10 months agoPok
10 months agoBrynn
11 months agoLetha
1 year agoPenney
1 year agoJettie
1 year agoYasuko
1 year agoDominic
1 year agoShelton
1 year agoVicki
1 year agoMargot
1 year agoStephania
1 year agoLeatha
1 year agoBernadine
1 year agoArlette
1 year agoCharlene
1 year agoBettina
1 year agoEmilio
1 year agoRanee
1 year agoTegan
1 year agoKenneth
1 year agoSamira
2 years agoMiesha
2 years agoElza
2 years agoAshton
2 years agoSheldon
2 years agoTien
2 years agoFreeman
2 years agoCorinne
2 years agoSuzan
2 years agoAn
2 years agoTamesha
2 years agoHarrison
2 years agoEllsworth
2 years agoPhyliss
2 years agoErnest
2 years agoMargarett
2 years agoTruman
2 years agoLetha
2 years agoLinwood
2 years ago