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
btran3btran3 

Trigger for custom field

I would like to write a trigger for a custom field at the parent account level.  The field I am using is called pricing and is a picklist field with two values(old/new).  When the pricing field is selected in the parent account I would like that field to populate at every child account and their opportunities that are associated with that parent account.  I think this could be done through a trigger but if you have another work around I would like to hear it.  Thanks for the help in advance.

Madhan Raja MMadhan Raja M

Create a Formula(Text) field in Opportunity object with the formula:

 

TEXT(Account.Pricing__c)

 

Madhan Raja M