Tried your suggestion using process builder. Created a process builder on quote when it is edited/created it must update the quotelines I am trying to update a disti discount and reseller discount it is not getting updated. I even tried with trigger and helperclass caling them with AFTER update action its not working
Please let me know if you have any other suggestion
If you would like to achieve with the trigger you may use below code to update the Quoteline item.
--
Thanks,
Prashant
All Answers
You can achieve it using process builder.Create process builder in 'Quote' object.
Check the creteria as per your requirement.
Then in the update records choose Quote.QuoteLineitems as like in the below image.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Thanks,
Sarav
Sweet Potato Tec
Tried your suggestion using process builder. Created a process builder on quote when it is edited/created it must update the quotelines
I am trying to update a disti discount and reseller discount it is not getting updated.
I even tried with trigger and helperclass caling them with AFTER update action its not working
Please let me know if you have any other suggestion
Thanks
Sudhir
Can you please share your process builder.?
Also can you please let me know how you are set the values for disti discount and reseller discount?
Thanks,
Sarav
Sweet Potato Tec
Please see image below. for testing i am adding 1 and 2 as a value for discount
Quoteline item is the child of quote. So once a quote has been added then only quote line item will be added.
So you need to create quote line item and then if you edit and save the quote record all the child record values gets updated.
To work when a quote has been created you can use create record and create quote line item using process builder with predefined values.
Thanks,
Sarav
Sweet Potato Tec
If you would like to achieve with the trigger you may use below code to update the Quoteline item.
--
Thanks,
Prashant
Your code worked cool
Thanks
Sudhir
--
Thanks,
Prashant