Sunday, 29 June 2014

Quote Sync in Apex

Here i am going to explain how to sync quote in apex .

We have "SyncedQuoteId" field on Opportunity object. If we want to sync a quote with opportunity then we just need to update opportunity with Quote Id as shown below. Then the Quote will be in sync with opportunity which we updated.


Opportunity oppobj=new Opportunity(id=opportunityId,SyncedQuoteId=quoteobj.id);
 update oppobj;

No comments:

Post a Comment

Grounding Prompt Templates with Apex Merge Fields

 Hi, You can include an Apex merge field in a prompt template to surface data retrieved from a SOQL query or an external API. Apex is also u...