Update the codebase to use best practices || Advanced Apex Specialist Superbadge || Challenge 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 12

  • @rangurajeevkumar1694
    @rangurajeevkumar1694 4 หลายเดือนก่อน

    Hi Sathish Goud, Can you help in the interviews?

  • @Salesforcebuddy1711
    @Salesforcebuddy1711  ปีที่แล้ว +3

    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'

  • @parvinderpuri900
    @parvinderpuri900 ปีที่แล้ว

    After create apex class Constants will it create 12 product with stranded price. as given data in superbadge

    • @Salesforcebuddy1711
      @Salesforcebuddy1711  ปีที่แล้ว +1

      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

    • @parvinderpuri900
      @parvinderpuri900 ปีที่แล้ว

      I already query it and add it in apex class but not created 12 products as mentioned in superbadge

    • @Salesforcebuddy1711
      @Salesforcebuddy1711  ปีที่แล้ว

      @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...

    • @puneetgoyal5407
      @puneetgoyal5407 ปีที่แล้ว

      Which 12 product we have create can you please elaborate bcz i am getting the error

  • @Salesforcebuddy1711
    @Salesforcebuddy1711  3 วันที่ผ่านมา

    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.

  • @practical_deen
    @practical_deen ปีที่แล้ว

    Worked. Thanks!

  • @manzarsofttech8172
    @manzarsofttech8172 ปีที่แล้ว

    It's Worked.

  • @ShaileshBhirud-u5l
    @ShaileshBhirud-u5l 10 หลายเดือนก่อน

    select id , Name, IsStandard from Pricebook2