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
LALALALALALA 

How to automatically trigger Syncing Start----this button on quote by using trigger or apex?

User-added image
I was try to write code:        quote.isSyncing == true


but the error shows:             Field is not writeable


Then I find another code, but I don't know how to use it, because I didn't find where is the 'quoteToSync.Id'

This is code:
// Begin syncing Quote with Opportunity. Same as pressing the "Start Sync" button on Quote layout
parentOpp.SyncedQuoteId = quoteToSync.Id;


Thank you anyone can give me a sample code for that, appreciate that:)
LALALALALALA
@pcon

 
Amit Chaudhary 8Amit Chaudhary 8
Hi 
Please check below blog. May be that will help you

http://amitsalesforce.blogspot.in/2014/11/syncing-custom-fields-between-quotes.html