You need to sign in to do that
Don't have an account?
Ab
Need solution to execute trigger forcefully for all existing objects
Hello,
I have a Object 2 Objects like below, which has Master detail Relationship.
Object 1 (Master)
Field 1 (Number Type)
Object 2 (Detail)
Field 2 (Currency type)
I have a trigger which will calculate from Field 2(Field in Detail object) and put a calculated value on Field 1 (Of Master Object).
As this trigger is implemented now,
How is it possibel to execute the trigger for the already exsisting Objects, which are not gonna be updated.
Thank you for suggestion !
Realistically, you could just perform the logic on your "scope" list directly in the execute method. I always find it cleaner to invoke a utility class and perform the logic there.
All Answers
Alternatively, you calculate the value of the master field 1 and update the field directly via dataloader, without relying on the trigger.
Realistically, you could just perform the logic on your "scope" list directly in the execute method. I always find it cleaner to invoke a utility class and perform the logic there.