Sync Custom Fields From Quote Line Items to Opportunity Products

Поділитися
Вставка
  • Опубліковано 9 лип 2024
  • Interested in consulting? www.1sync.co/contact
    -----------------------------------
    In this video, we discuss how to sync custom fields from the quote line items in Salesforce to the opportunity products (opportunity line items). This solution uses a custom apex trigger with the after context to push a DML update to the quote line items. We also use an apex class to handle the Trigger.New context and map quote line items to opportunity products. All of the code provided in this tutorial can be seen in the Github repo commented below and is production-ready code for Salesforce. A Salesforce developer can use the SFDX CLI, to push the apex class, and apex trigger that maps the quote line items to the opportunity products.
  • Наука та технологія

КОМЕНТАРІ • 11

  • @JustinWills
    @JustinWills  2 роки тому

    Please see the source code here:
    github.com/jawills/salesforce-qli-oli-sync

  • @zoesmith2466
    @zoesmith2466 Рік тому +1

    Thank you for your video! I wish I would have found this months ago

  • @jananipriya3769
    @jananipriya3769 4 місяці тому

    Hi Justin,
    Thank you for this video. I have implemented something similar to this in our org. But now it looks like the standard functionality is not syncing like before. Do we need to include the standard fields as well into this triggerhandler class?

    • @JustinWills
      @JustinWills  4 місяці тому

      What exactly is not working? You should not need to include standard fields like quantity and sales price.
      Is the quote set as syncing?

  • @rakshithas6385
    @rakshithas6385 Рік тому +1

    Hi Justin, does this code process all the QuoteLineItems which are more than 200?

    • @JustinWills
      @JustinWills  Рік тому +1

      Yes

    • @rakshithamathuga4022
      @rakshithamathuga4022 Рік тому

      @@JustinWills I was getting an error called Apex CPU Limit so just wanted to check with you

    • @rakshithamathuga4022
      @rakshithamathuga4022 Рік тому

      And also if you don't mind , can you tell me in which file you added the code to process more than 200 QuoteLineItems ? Thanks

    • @JustinWills
      @JustinWills  Рік тому

      @@rakshithamathuga4022 There is nothing in the code that stops processing at 200 Quote Line Items. If you are running into an Apex CPU limit, there are most likely other automation in your Salesforce instance.

    • @rakshithamathuga4022
      @rakshithamathuga4022 Рік тому

      Thanks for confirming ..... I will try your code and do it. The one which I was using was the Custom Quote Sync(Unmanaged) app that's why I was facing the issues.