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
kishore64kishore64 

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.
Ramu_SFDCRamu_SFDC
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 http://hisrinu.wordpress.com/2012/03/28/syncing-quotes-using-apex-5/

Hope this helps.