Skip to main content
Md. Shahid Shah ha preguntado en #Trailhead
 I''m struck on Step 1 

Advanced Apex Specialist step 1Here's my code ):

Can someone please help me out !

User-added image
5 respuestas
  1. 8 jun 2021, 13:37
    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.

    SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book'

    if you need any assistanse, Please let me know!!

    Kindly mark my solution as the best answer if it helps you.

    Thanks

    Mukesh