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 Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 5 Question 97 Discussion

Posted by Lorrie on Jul 19, 2026 at 03:30 PM

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?

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


Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
TH
Thaddeus 1 month ago
Option C makes sense too. A new Service Class could streamline things.
VE
Verda 1 month ago
I prefer option D. Creating a new Logic Class seems more flexible.
ZA
Zack 1 month ago
I think option A is the best choice. It directly targets the Service Class.
OL
Olive 2 months ago
I thought we were supposed to create a new Logic Class instead.
HO
Hortencia 2 months ago
Definitely B, that’s the way to go!
JE
Jeannine 2 months ago
Wait, are we sure about that? Seems a bit off.
DI
Dick 2 months ago
I think it's actually about creating a new Service Class.
AN
Annita 2 months ago
Gotta override the Logic Class for that!
MA
Mari 2 months ago
I’m a bit confused about the difference between the Service Class and Logic Class in this context. I hope we don’t have to create a new one!
AI
Aileen 3 months ago
I feel like the Logic Class is more related to how data is processed, so maybe we should focus on that instead of the Service Class.
WH
Whitney 3 months ago
I remember practicing a similar question where we had to update the Service Management in CCAdmin. I think creating a new Service Class could be the right approach.
MA
Marylyn 3 months ago
I think we might need to override a class, but I'm not sure if it's the Service Class or the Logic Class.
0/2000 characters

Save Cancel