Exam4Training

How does the Developer ensure that the field is available to display on a given page?

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

Answer: A

Explanation:

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

Exit mobile version