+ Start a Discussion
webdesignerjameel1.392198370693491E12webdesignerjameel1.392198370693491E12 

Howt to Automatically Sync new Quote with Opportunity ?

I am trying to auto sync, below code taken from internet but geting error , i know this is very simple but i am very new to SF 

trigger autosync on Opportunity (after insert, after update) {
parentOpp.SyncedQuoteId = quoteToSync.Id;
}

Error: Compile Error: Variable does not exist: parentOpp.SyncedQuoteId at line 2 column 1

Please advise.
Subramani_SFDCSubramani_SFDC
http://blog.softwareallies.com/2010/08/salesfoce-syncing-quote-in-apex.html....this blog will help u..u cant do this via trigger,,,,,use apex class or via custom button....
webdesignerjameel1.392198370693491E12webdesignerjameel1.392198370693491E12
Hi Subramani,

Thanks for your replay, Actually i have take this code from that site ony my problem is after excuting apex code i am getting above error. i dont know how to solve. I need to create new field or not like that.

Please advise.
Subramani_SFDCSubramani_SFDC
can u post ur code pls.....??
webdesignerjameel1.392198370693491E12webdesignerjameel1.392198370693491E12
trigger autosync on Opportunity (after insert, after update) { parentOpp.SyncedQuoteId = quoteToSync.Id; }
John BraunJohn Braun
Hello,

Were you able to accomplish this? More specifically, is there a way to update existing quotes to sync with the opportunity?