Axguru_blog4
Table On Inserting Event Handler In Dynamics 365 Finance And Operations
February 21, 2020
Axguru_dynamics-bc2-1
Microsoft Dynamics 365: Business Central: Working with Procurement (Part 1)
February 21, 2020

Debug Workflow Code – Dynamics 365 Finance And Operations

AXGuru D365

AXGuru D365

Debug Workflow Code - Dynamics 365 Finance & Operations

Debug Workflow Code

Workflow infrastructure in dynamics 365 uses batch processing so we need to attach to batch.exe process to debug our workflow code. Use the following steps to debug workflow code:

1) Put breakpoint in one of the following class methods:

a) SysWorkflowQueue.Resume()
b) SysWokrflowWorkitem.Create()

2) In the debug menu , in visual studio, select the "Attach to process" option as shown below:
3) Now, select "Batch.exe" process and and click "Attach" as shown below:
Note: If Batch.exe is not showing, make sure that the service "Microsoft Dynamics 365 Unified Operations: Batch Management Service" is running.
For any further information