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
vasu sfdc_21vasu sfdc_21 

apex trigger schenario

Hi Folks,

Please help me out below trigger

After creating opportunity then on Contract  for Product Group is not getting populated  when contract has been created in salesforce.


Product_Group__c picklist values are below 
Chrome - CFM License
GAME
Google Cloud Identity
ISV - AODocs
 
Suraj Tripathi 47Suraj Tripathi 47

Hi Vishal

please explain your requirement with details and with example

sakhisakhi
Hi Vishal ,
 
Your requirement is not clear .Please elaborate it with data model and relationships .

Looks like you need to populate Product_Group__c  value from contact to opportunity on insert of contract .Please confirm .
vasu sfdc_21vasu sfdc_21
Hi,

Please Find the requirement in detail

When contract has been created then we can see Subscription record under contract. And then under Subscription there is Product found . Once we'll open Product then we can see Product Group value in product. 

Requirement is-  When contract has been created then Product Group field value also update on contract details same page .



contract-Subscription # ->product->Product Group.  Product Group value need to be updated when contract has been created and when opportunity stage become Contract Signed.





 
vasu sfdc_21vasu sfdc_21
Hi sakhi and suraj !

Any update pls let me know.