Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce B2B Commerce for Developers Accredited Professional (AP-202) Exam - Topic 3 Question 93 Discussion

Which three statements are true about Global API versioning? (3 answers)
A) Calling in with an API version set to lower than 1 will result in an exceptional case where the exception classccrz.BelowMinAPIVersionException will be returned tocallers. and D) Minimum API_VERSION is 1 and the Maximum API version follows the releases. E.g. The maximum was 4 as of Salesforce B2B Commerce Release-4.5, 5 as of Salesforce B2B CommerceRelease 4.6, etc. and E) 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.
B) There is no need to pass API_VERSION to the Global APIs, and based on the Salesforce B2B Commerce Managed Package version, Global APIs are able to figure out what version of the API to use.
C) The API version is scoped at the Class API level and NOT at the method level.

Salesforce B2B Commerce for Developers Accredited Professional (AP-202) Exam - Topic 3 Question 93 Discussion

Actual exam question for Salesforce's B2B Commerce for Developers Accredited Professional (AP-202) exam
Question #: 93
Topic #: 3
[All B2B Commerce for Developers Accredited Professional (AP-202) Questions]

Which three statements are true about Global API versioning? (3 answers)

Show Suggested Answer Hide Answer
Suggested Answer: A, D, E

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


Contribute your Thoughts:

0/2000 characters
Ardella
25 days ago
I remember something about the minimum API version needing to be 1, but I'm not sure if that's just for certain APIs or all of them.
upvoted 0 times
...

Save Cancel