Thursday, August 15, 2019

How to debug Workflow in D365 without access to Batch.exe

Correct me if I am wrong, but there is no specific article about debugging custom Workflow in D365.

So, once I bumped into necessity to test my custom Workflow classes, I found myself unlucky not having admin rights fot Batch.exe (as described here

Next search results (in particular this one brought me to the following steps.

I stopped DynamicsAxBatch, which execute actual batch processing in D365.

I added the following simple class and and a menu item button to a form.

class CDPWFDebuggerActive
    static public void main(Args _args)


Now I run it by the button to execute batch processing in step-by-step mode, and it perfectly hits my breakpoints inside of Workflow handlers once I attached to the standard IIS process.

No comments: