You need to sign in to do that
Don't have an account?
Sravan R Pinninti
What is ideal for referencing the value of a foirmula field in Triggers. Before or After??
HI,
I have a scenario where I have to assign the ownership of child records based on the value of a formula field on the parent record. I have used before Insert and it seems the functionality is working as expected but I have some concern over the order of execution.
Can someone suggest me the Ideal way of doing this. Should I go for a before trigger or After Trigger?
I have a scenario where I have to assign the ownership of child records based on the value of a formula field on the parent record. I have used before Insert and it seems the functionality is working as expected but I have some concern over the order of execution.
Can someone suggest me the Ideal way of doing this. Should I go for a before trigger or After Trigger?
Hi Sravan,
In my view, it should be an after trigger because once you insert/update the parent record, then only it should change the ownership of the child record, right. You might also want to add after update in your trigger as per your requirement.
Thanks!