Hi Shaid,Please use below code:- public class Constants {
public static final Integer DEFAULT_ROWS = 5;
public static final String SELECT_ONE = Label.Select_One;
public static final String INVENTORY_LEVEL_LOW = Label.Inventory_Level_Low;
public static final List<Schema.PicklistEntry> PRODUCT_FAMILY = Product2.Family.getDescribe().getPicklistValues();
public static final String DRAFT_ORDER_STATUS = 'draft';
public static final String ACTIVATED_ORDER_STATUS = 'activated';
public static final String ERROR_MESSAGE = 'An error has occurred, please take a screenshot with the URL and send it to IT.';
public static final Id STANDARD_PRICEBOOK_ID = '01s3k000002IjuwAAC';
}
For the STANDARD_PRICEBOOK_ID, use the below query in Query editor and grab the id.
if you need any assistanse, Please let me know!!SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book'
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
답변 5개