Cailean
Cailean

Reputation: 181

Realtime Workflow in Dynamics 365 Not Triggering when Record is Deleted

I'm creating a Realtime Workflow in Dynamics 365 that is set to trigger on both "Before Record Status Changes" as well as "Before Record Is Deleted". I can confirm that it is firing and working well for the Record Status Change case, but for some reason it's not firing when I delete the same record in question.

Would anyone have any ideas why this could be happening? I've even looked at the Process Session history and can see that only Record Status Change instances have fired. None of the Delete instances have a log entry.

I should also add that the workflow is extremely simple and doesn't do anything different for a delete vs a status change, so any record that works properly for the Status Change should have the same result for the Delete.

Any help would be greatly appreciated.

Upvotes: 5

Views: 4075

Answers (2)

Chad Rexin
Chad Rexin

Reputation: 596

This could be due to missing some required security privileges for the user running the real-time workflow. The privileges listed here are listed in the Microsoft CRM/Dynamics 365 documentation at Required security privileges for real-time workflows

"A security privilege named Activate Real-time Processes (prvActivateSynchronousWorkflow) is required to activate real-time workflows so that they can be executed. The Execute Workflow Job (prvWorkflowExecution) privilege is required to start the workflow.

Note that when opening a security role (Settings - Security - Security Roles, these privileges will be listed as "Activate Real-time processes" and "Execute Workflow job" when looking on the Customization tab of the security role. "

Upvotes: 0

Sushant Salunkhe
Sushant Salunkhe

Reputation: 114

You can check scope of workflow. There is no platform bug I just created a RealTime WF on account delete and status change and that to Before... it worked fine.

Does any of the step skiping some logic. Try creating Expense on Delete, if record gets deleted Expense entry will be created -just an example what I tried.

Keep WF Log Retension checked in order to track errors.

Upvotes: -1

Related Questions