How to debug custom workflow Dynamics 365 online?
Views (225)
In this article we will learn how to debug custom workflow Dynamics 365 online ? Here we have kept a full step by step demo video of how to debug workflow in dynamics 365?
Debug custom workflow Dynamics 365 online
The following are the steps we have to follow in order to debug custom workflow activity in Dynamics 365 :
- Step 1. Run the Plugin Registration Tool as an administrator.
- Step 2. Connect to your CRM organization using the Plugin Registration Tool
- Step 3. Register your Custom Workflow Activity.
- Step 4. Create a workflow in CRM which trigger your Custom Workflow Activity.
- Step 5. Select the newly registered custom workflow activity and click on the ‘Plug-in Profiler’ button.
- Step 6. If you do not see the Plug-in Profiler button then install the Profiler by clicking on the ‘Install Profiler’ button. Once the installation is done successfully, the Plugin Registration Tool shows the “Uninstall Profiler” button and a new item ‘Plug-in Profiler’ is added to the registered components.
- Step 7. Select the “Plug-in Profiler” and then click on the “Profile Workflow” button to open the Profile Settings window.
- Step 8. Select the workflow which you created at the step #4. Select ‘Persist to Entity’ radio option and click ‘OK’. Copy the value In the Persistence Key field to your clipboard.
- Step 9. Login to your CRM and trigger the relevant Workflow. In my case I am updating a field which triggers the workflow.
- Step 10. Go to Settings –> Extensions –> Plug-in Profiles.
- Step 11. Open the relevant Plug-in Profile record.
- Step 12. Click on the “Serialized Profile” tab and copy the value specified in the “Serialized Profile”.
- Step 13. Create a new text file and copy the “Serialized Profile” value into it and then save the file.
- Step 14. Go back to the Plugin Registration Tool, select the profile created earlier and click on the Debug button.
- Step 15. In the opened Debug window, select the newly created text file in the Profile Location field and the Custom Workflow Activity assembly in the Workflow Activity field.
- Step 16. Open your Custom Workflow Activity project using Visual Studio.
- Step 17. Put the break point in your code and attach the debugger to the Plugin Registration Tool process and click the Start Execution button in the Plugin Registration Tool debug window.
Learn More from below:
- Dynamics 365 April 2019 release – What’s new ?
- https://www.dynamixacademy.com/dynamics-365-plugin-event-execution-pipeline/
- Virtual Entities in Dynamics 365
Also find us on:
- YouTube : https://www.youtube.com/dynamixacademy?Sub_confirmation=1
- Facebook : https://www.facebook.com/groups/1978288099132880
- Twitter: https://twitter.com/AcademyDynamix
- WhatsApp: https://chat.whatsapp.com/Blw14zGHhOECKlI8y2h4Xt
The post How to debug custom workflow Dynamics 365 online? appeared first on Dynamix Academy.
*This post is locked for comments