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 5 Question 97 Discussion

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

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

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

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

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 Reference:B2B Commerce and D2C Commerce Developer Guide,Service Classes,Logic Classes


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel