Delete Business Rule not working - Multiple delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 06:44 AM
Hi,
As per our requirement, we need to update a custom field which represents 'total hours' in parent (time_sheet) record, whenever a child (time_card) record is deleted. And when all records in the time_card table is deleted, we should show an error message and delete the associated time_sheet as well.
We have written a Business Rule which runs on delete of any record in time_card table which calculates the remaining time and update the time_sheet record or delete it.
This works fine, when we delete one record at once, but fails when we delete multiple record at once from related list.
I have tried changing it to before BR and async BR, but no luck. Can someone please let me know, if we have a fix for this?
Thanks!