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
Jacek DJacek D 

Trying to build a trigger that fires workflow on child object

I want a workflow rule to be fired if the parent or grandparent changes. Sadly my knowledge of Apex code is limited.


I was wondering if anyone already thought up a trigger for this and can help me with the basic structure?


That would be great,



Shashikant SharmaShashikant Sharma

You have to write seperaye trigger for this on parent and grandparent , if the business logic is same you can have a same method in a class and use it instead of writitng same code twice.