Scheduled Workflow not updating Entity if its parent was deleted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paulina
    Member
    • Feb 2022
    • 41

    Scheduled Workflow not updating Entity if its parent was deleted

    Hi, I have a Scheduled Workflow which updates Email attribute 'deleted' to 'true'. It works fine if Email parent Case is not deleted, but workflow not updating Email if its parent is Case and this Case is deleted.
    I am attaching a Workflow screenshot.
    Attached Files
  • rabii
    Active Community Member
    • Jun 2016
    • 1260

    #2
    It is normal hence your report has a condition to fetch only email of existing Cases so this would happen. Best way is to have a custom hook for Case (afterRemove) and just remove related email otherwise it won't work on the workflow or bpmn hence they both need access to the parent record.
    Rabii
    Web Dev

    Comment

    Working...