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
svpsvp 

How to write a trigger to update a filed on Opportunity Based on value of a check box on Product

Hi,

 

I  need to write a tirrger to update a check box ( as true) based on value of custom check box on Product. I know there is no direct relationship between two, they have only relationship with OpportunityLineItem only,  i was truck to write a trriger tirgger. Any help must be hightly appreciated.

 

Thanks Inadvance !

 

-SVP

 

 

 

Suresh RaghuramSuresh Raghuram

when u make the checkbox on product to true the field on opportunity to be updated.

 

then write a trigger on product.

 

here the product is not directly related to the opportunity but having relationship with opportuityLineItem.

 

based on opportunitylineitem make the change on opportunity when a field updated on product

svpsvp

Thanks for you reply.

It would be great if you can provide some sample (related) code if any.

 

 

Thanks,

SVP