Workflow when deleted

I wanted to ask if there is any way to put a condition in the workflow that controls when a record is deleted.

Example: When a document is deleted I send an email to xxxx@probe.pr

Thank you very much.

@sefirot127
I don’t know about workflow but you can use logichook (after_delete or before_delete). See documentation: https://docs.suitecrm.com/developer/logic-hooks/ .

I think you can do this with a Workflow that runs on Modified records, and tests to see if the changed field is deleted=1

1 Like

Thank you both very much.

I’m going to try the deleted field first and if it doesn’t work I’ll try to make a logical hook