Home › Dynamics 365 Customer Engagement (CRM) › Debugging a Custom Workflow Activity in Dynamics 365 and PowerApps
Dynamics 365 Customer Engagement (CRM) · Oct 7, 2019 · 1 MIN READ

Debugging a Custom Workflow Activity in Dynamics 365 and PowerApps

In the previous post, we created a new Custom Workflow Activity and used it in a workflow.

Let’s look at how to debug one of these.

Open the Plugin Registration Tool (PRT) and select Install Profiler:

This may take a few minutes. Once installed, you will see the Plugin Profiler at the bottom of the list:

Right-click it and select Start Profiling Workflow:

Find your workflow in the list and click OK:

Now perform the action that runs the workflow custom activity. I.e. in our case we have a workflow running on saving the account with the city field populated.

Once complete, expand Plug-in Profiler to find your profile and click Unregister:

Now from the top, select Replay Plug-in Execution:

Select the

Select the assembly of the custom workflow assembly project

Now, jump over to your Visual Studio project for the custom workflow, select Debug then Attach to Process:

Find the PluginRegistrationTool and click Attach:

Add a breakpoint in the Execute method:

Back in the Plugin Registration Tool, click Start Execution:

The breakpoint is hit, and you can start debugging:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

6 Responses to Debugging a Custom Workflow Activity in Dynamics 365 and PowerApps

    • I’m looking for the same thing – actions don’t appear in the list of ‘workflows’ when we use Start Profiling Workflows

  1. When I follow the step “Find your workflow in the list and click OK:” I can see my custom activities disabled any ideas?

    • It could be that you are using a Plugin Registration Tool for the version 8.x, try with the 9.x latest version.

      Regards!

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl de Souza
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.