Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 24 Topic 3 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 24 Topic 3 Discussion

PDI Exam Topic 3 Question 24 Discussion:
Question #: 24
Topic #: 3

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineltem trigger.

Which method allows access to the price book?


A.

Use Test .getStandardPricebookid() to get the standard price book ID.


B.

Use @isTest [SeeAllData=true| and delete the existing standard price book.


C.

Use @Testvisible to allow the test method to see the standard price book.


D.

Use Test. loadData () and a static resource to load a standard price book.


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.