Debugging a Custom Workflow Activity in Dynamics 365 and PowerApps

5 Comments

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:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

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

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

Leave a Reply

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