-
How can I get Standard Price Book within our Test Class in Salesforce?
When I Insert a Product in Test Class,it fire a Trigger in which a Query is used to Find Standard Price Book(i.e. Pricebook2 pb = [Select id from Pricebook2 where isStandard = true];),How can I get Standard Price Book in our Test Class?
Log In to reply.
Popular Salesforce Blogs

A Gift! for Salesforce Developers - Automatically convert Existing Visualforce Pages to Lightning (Beta)
Yes! that's right. It's a beautiful gift from Salesforce, giving us (developers) the ability to code in both Lightning Experience and Classic without having to…

Imported for Person Accounts in Salesforce - All You Need To Know
Required Editions Information Import Wizard accessible in both Salesforce Classic and Lightning Experience. Information Import Wizard accessible all told Editions other than Database.com. Individual records…

Your Journey to Salesforce to Becoming a Salesforce Developer
As an informational guide for Salesforce beginners and anyone who would like to start a career in it, this article assembles the basic knowledge about…
Popular Salesforce Videos
How does Salesforce Field Service Platform increase servicing revenue for your company
CRM Salesforce, along with its Field Service Lightning App, is drastically improving the field-force productivity in the industry. Built on the Salesforce Service Cloud, it…
Create Custom Object and Tabs in Salesforce Lightning Experience
In this video, Sanjay Gupta Tech School explains how to create custom objects and tabs in Salesforce Lightning Experience. Watch this video and learn all…
Overview of Salesforce Development Course
In this video, Shrey has given a detailed overview of the Salesforce development training. You will learn the following topics from this course: Apex basics…