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. - Наука та технологія
Please see the source code here:
github.com/jawills/salesforce-qli-oli-sync
Thank you for your video! I wish I would have found this months ago
Glad you found value!
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?
What exactly is not working? You should not need to include standard fields like quantity and sales price.
Is the quote set as syncing?
Hi Justin, does this code process all the QuoteLineItems which are more than 200?
Yes
@@JustinWills I was getting an error called Apex CPU Limit so just wanted to check with you
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
@@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.
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.