Constants Class: 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 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 INVENTORY_ANNOUNCEMENTS = 'Inventory Announcements'; 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 = '01s1N000007brPH'; } ==Query== SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book'
Hi Parvinder , Could you please query this in developer console === SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book' ===then you will get id , and copy that id in the constant class in standard_pricebook_id
Hi guys, If anyone required Remaining challenges 3,4,5,6,7,8 videos , please join telegram channel with given link. t.me/+V8wUvy3DbAJlOTg1 And after joining display name in comment section ,Then I will get back to you in the channel.
Hi Sathish Goud, Can you help in the interviews?
Constants Class:
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 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 INVENTORY_ANNOUNCEMENTS = 'Inventory Announcements';
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 = '01s1N000007brPH';
}
==Query==
SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book'
After create apex class Constants will it create 12 product with stranded price. as given data in superbadge
Hi Parvinder , Could you please query this in developer console ===
SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book' ===then you will get id , and copy that id in the constant class in standard_pricebook_id
I already query it and add it in apex class but not created 12 products as mentioned in superbadge
@Parvinder Puri in the comments ,I have given some apex codes and test codes ,kindly take that codes copy that and replace that in your codes...
Which 12 product we have create can you please elaborate bcz i am getting the error
Hi guys, If anyone required Remaining challenges 3,4,5,6,7,8 videos , please join telegram channel with given link.
t.me/+V8wUvy3DbAJlOTg1
And after joining display name in comment section ,Then I will get back to you in the channel.
Worked. Thanks!
It's Worked.
select id , Name, IsStandard from Pricebook2