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
RenegadeCoderRenegadeCoder 

How can I sync a subset of Quote Line Items?

Here's the basic rundown: I've got a checkbox on my Quote Line Item object, and when I sync the Quote I want to prevent some items from becoming Opportunity Line Items based on the value of that checkbox.

 

So the question is: how can I tap into the sync functionality to have it exclude certain records?

 

My colleagues and I have been working on this problem for a while and Google has turned up no information. Even our research on the syncing concept in general turns up nothing but the very bare-bones description of "how to sync a quote" and what it means when a quote is synced...

 

The only thing I've managed to find are people who want to keep data from custom fields in sync, and the only answer available seems to be this app which provides Custom Settings for mapping the fields. I find it odd that nobody has even mentioned my use case, but the existence of that app tells me that it must be possible to communicate with the native sync process...

 

Any help would be greatly appreciated!

RenegadeCoderRenegadeCoder

Well, I found an answer.

After speaking with my company's TAM (Salesforce representative), he has informed me that manipulating the native sync process is indeed impossible...

"The synch process is not extensible, does not have an API, etc."

:(

He even sent me the unmanaged version of the package I had linked above, which turns out to be just a series of Custom Settings and Triggers. Quite disappointing...

The only way to hit my use case would be to either write an entirely custom sync process, or create a custom Line Item object to contain the items that I do not want synced (effectively meaning that those items will never exist as QuoteLineItems at all).

Amit Chaudhary 8Amit Chaudhary 8
Try below link :-

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

Thanks,
Amit Chaudhary
Amit Chaudhary 8Amit Chaudhary 8

QuoteLineItem to OpportunityLineItem :-

If you want to sync OpportunityLineItem form QuoteLineItem then please create a formula field.
You won't be able to create it using the wizard, but you can manually enter the "OpportunityLineItem.Id" as the formula, for a formula field on QuoteLineItem. 
After that to sync OpportunityLineItem from QuoteLineItem you can write a trigger. It will easy for you in this case you will get OpportunityLineItem.Id .

OpportunityLineItem to QuoteLineItem :-

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

Thanks,
Amit Chaudhary