How to get Standard Price Book Id in test class?

Test.getStandardPricebookId() is used to get Standard Price Book Id in test class.

Sample Code:
Id pricebookId = Test.getStandardPricebookId();

Cheers!!!

No comments:

Post a Comment