You need to sign in to do that
Don't have an account?

trigger for three objects
Hi,
Can someone please help with the sample code snippet for trigger:
Hi Have three objects - (A , B and C).
I have an external system that is creating a single record in object C and bulk of records in object B. I want a trigger that as soon as a record is inserted or updated in obejct C, copy the record values from object B and insert/update it in Object A.
Thanks.
Can someone please help with the sample code snippet for trigger:
Hi Have three objects - (A , B and C).
I have an external system that is creating a single record in object C and bulk of records in object B. I want a trigger that as soon as a record is inserted or updated in obejct C, copy the record values from object B and insert/update it in Object A.
Thanks.
You can do something like above.
All Answers
So the requirement goes something like this:
Object A - job monitoring object. It has the unique Id which gets populated and tells salesforce that bulk upload has been done on object B. Object B records also have this unique Id. As soon as a record is created in Object A with the unique Id, i need to pick up those records from object B with same unique id, and populate those records in object C.
Thanks.
You can do something like above.
Thanks.
one more doubt:-
if i want to update the objB record as well, is it the correct approach:-
Always DML should be outside for loop.