Hi all! Is there a way to update a related record when your current record is deleted?
e
Edgar Valdes
08/11/2025, 9:31 PM
Hard to tell without more detail, but Workflow Actions have a
DELETE
event.
g
GMR Admin
08/11/2025, 9:41 PM
Right, I've got that working. The issue is, is there an "update related record" worflow action type?
e
Edgar Valdes
08/11/2025, 9:45 PM
No, not as far as I know
You would need a script for that, maybe a Workflow Action Script
g
GMR Admin
08/11/2025, 11:32 PM
I got it working with a simple user event script instead
✅ 1
c
christianRILECPQ
08/12/2025, 3:55 AM
You can use a User Event script on the beforeDelete trigger to update related records before the main record gets removed. Just query for the related records and update them in the same script execution. Make sure to handle any potential circular reference issues if the related records also have delete triggers.