function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Is it possible fire the trigger for custom objects when ever we click on Quote StartSync button

I have a custom object under opportunity. This opportunity have a quote . Under quote , quotelineitem is there when ever i am clicking StartSync(It's in Quote object) what ever i am updating in quoteline item it should automatically update the Custom object under that opportunity only .       Is it possible to update ?

Thanks in advance 
Deepak Kumar ShyoranDeepak Kumar Shyoran
No you can't achive this via trigger but you can do the same for by using Apex code all you need is to call a Apex Method which will fectch all values from QuoteLineIten (you want to update ) and update those values on your custom object.
Unfortunately it is not possible to fire a trigger on quote sync. You can rather try synching the quote using APEX and write the logic to update the cusotm object within that code.

Wondering how you sync the quotes using APEX. here is the link that might help

Hope this helps.