ExamGecko
Question list
Search
Search

Question 45 - Certified B2B Commerce Developer discussion

Report
Export

The sizing keys used in the Salesforce B2B Commerce Global APIs five distinct operations. What are three of these operations? (3 answers)

A.
Refetch data (used on some Logic classes)
Answers
A.
Refetch data (used on some Logic classes)
B.
Return formats as Map<String, Object> or SObjects lists
Answers
B.
Return formats as Map<String, Object> or SObjects lists
C.
Override static DAO classes and methods
Answers
C.
Override static DAO classes and methods
D.
Related Query to call (sub queries or direct queries)
Answers
D.
Related Query to call (sub queries or direct queries)
E.
Object type casting
Answers
E.
Object type casting
Suggested answer: A, D, E

Explanation:

The sizing keys used in the Salesforce B2B Commerce Global APIs perform five distinct operations. Three of these operations are:

Refetch data (used on some Logic classes): This operation indicates that the data should be refetched from the database instead of using the cached data. For example,ccrz.ccServiceCart.getCart(ccrz.ccAPI.SZ_REFETCH)will refetch the cart data and refresh the cache.

Related Query to call (sub queries or direct queries): This operation indicates that the related entities should be retrieved by using sub queries or direct queries. For example,ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_SUBQUERY)will use sub queries to fetch the related entities for each product, whileccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_DIRECTQUERY)will use direct queries to fetch the related entities separately.

Object type casting: This operation indicates that the data should be cast to a specific object type. For example,ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_SOBJECT)will cast the data to sObjects instead of transformed objects. Salesforce

Reference:B2B Commerce and D2C Commerce Developer Guide,Data Sizing Conventions

asked 23/09/2024
Luis Antonio Sanchez Estrada
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first