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
NevDevNevDev 

Trigger to update SBQQ Template ID field based on a Opportunity picklist field

Hi guys,

I'm looking for a trigger that will update the SBQQ__QuoteTemplateId__c field with the correct Template ID based on a custom Opportunity field "Segment__c". 

Can anyone help me with this? 
Suraj TripathiSuraj Tripathi
Please give an exmaple of your requirement.
NevDevNevDev
So
If the [Opportunity].Segement__c = Retail, then the [Quote].Template_ID__c = a6n370000008S6u
If the [Opportunity].Segement__c = Hospitality, then the [Quote].Template_ID__c = a6n370000008S74

and so on.