Forum Post: No Way to Run Trigger After Object Deleted

  • Thread starter Thread starter awbranch
  • Start date Start date
Status
Not open for further replies.
A

awbranch

Guest
I want to run a trigger on a parent record when a child record is deleted. However I don't seem to be able to make this happen. I'm using Rollbase version 2.1.0.3. Idea 1: In the child record add a "Run Trigger on Related Record" that will call the trigger on the parent record after the child record is deleted. Oh No - The "After Delete" is disabled. Why is this? Idea 2: Run an "Object Script" trigger on the child record After Delete Oh No - The "After Delete" is disable again. No explanation as to why again. Idea 3: Read documentation (doh!) - Hmmmm, nothing in there about the "After Delete" checkbox being disabled under certain circumstances. However I find this nugget on page 270. When record is attached or detached using UI links in Related List component the system runs "After Update" triggers on both sides Ah-Ha - I'll add an After Update to the parent record. When the child record is deleted the trigger will run. I create a trigger on the parent object, set it to run "After Update" to create an activity log entry on "Any Update" to the object. In the parent objects view page, I change a text field value on the parent record. I check the activity log. Yup an entry was added to the activity log as expected. I delete a child record. I check the activity log. Oh No - Nothing added to the activity log. How could this be? So I'm out of ideas here am I missing something obvious?

Continue reading...
 
Status
Not open for further replies.
Back
Top