You need to sign in to do that
Don't have an account?
Anshuman Parhi
Write trigger to update status field of all related records.whenever there is change in status of record on either object(A,B).
Create Three Objects (A, B, C). Object 'C' will be the junction object. Create status field on object 'A' and 'B' (note:- Status:New Open Closed).
Write trigger to update status field of all related records.whenever there is change in status of record on either object(A,B).
Any help for this....
Write trigger to update status field of all related records.whenever there is change in status of record on either object(A,B).
Any help for this....
Greetings!
Trigger on A Object
Trigger on B Object
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
All Answers
Although there could be different ways to achieve it one way is to have triggers on both the objects and make a set of record id's that have change in status field value then send these set of values to a handler class that would be doing the necessary fetching of child records and updating the status on child records.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
I wanted to k now trigger for this....so kindly give trigger code for this kind of scenario
Greetings!
Trigger on A Object
Trigger on B Object
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi