Hi, when a record gets deleted I need to perform some clean up operations (get rid of subordinate records for example), so I have created a Workflow, that has the conditional action of:
When I check the workflow is never triggered.
I also want to be able to reference the deleted flag on a parent record, so for example, when an Opportunity gets updated, I may want to see if the parent account has been deleted, and then delete the Opportunity.
The Workflow trigger therefore becomes:
This never gets triggered either.
While you are having a look into this area, I will also want to assign the deleted flag to items.
I know I can assign it to the current item, and this works well.
What I have not tested is assigning it to subordinate items, so for example, if an Opportunity gets deleted, I want to also delete the lower items.
The Workflow action is then something like:
Help as always appreciated.
Code:
deleted == 1
I also want to be able to reference the deleted flag on a parent record, so for example, when an Opportunity gets updated, I may want to see if the parent account has been deleted, and then delete the Opportunity.
The Workflow trigger therefore becomes:
Code:
account.deleted == 1
While you are having a look into this area, I will also want to assign the deleted flag to items.
I know I can assign it to the current item, and this works well.
What I have not tested is assigning it to subordinate items, so for example, if an Opportunity gets deleted, I want to also delete the lower items.
The Workflow action is then something like:
Code:
subordinate_record_link.deleted = 1;
Help as always appreciated.
Comment