You need to sign in to do that
Don't have an account?
sfdcjoey
What would happen if I perform a DML update operation on the before update trigger of the same sObject record ?
What would happen if I perform a DML update operation on the before update trigger of the same sObject record ?
error
Now there are some cases where you need to fire the trigger on After insert in case you need the record Id as example, in this case you should query again the records after the trigger is fired and perform a DML on this new List. Because on After the record is Locked and you cannot perform DML directly on fired trigger records.
Please mark this as resolved if it answers your question.
Joe,
if you want to update the record that is being changed - simply update it's fields in the trigger
If you need to create news records in the same object, or update related records, you should use process bulder.
If you want to delete records, that use the AFTER trigger instead