web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Debugging Custom Action

(0) ShareShare
ReportReport
Posted on by

i have created a Process of type Action. i need it since i'm building a PCF and calling the process with specific inputs from the PCF

however, i haven't found a guide or doc in how to debug Actions!

i have found that i can debug custom workflow, but custom workflow can't get input parameters. is that correct?

is there a way to debug actions? or a workaround that is used in the community?

I have the same question (1)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Debugging Custom Action

    Hello,

    Can you please explain what exact issue you experience?

  • liranelisha Profile Picture
    on at
    RE: Debugging Custom Action

    When i open the plugin registration tool, there isn't any option to profile actions, just custom workflows

    pastedimage1623766714846v1.png

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Debugging Custom Action

    Gotcha! I believe I will record video on this but the approach is following:

    1. Add a step to your action that handles the message of the action.

    2. Start profiling on the step.

    3. And there is no step 3 - you can do the troubleshooting the way you do it with regular plugins.

  • liranelisha Profile Picture
    on at
    RE: Debugging Custom Action

    thank you for the response Andrew, but i think i'm missing something

    the action already contain a step that calls the code activity

    pastedimage1623767580832v1.png

    however, i can't find it in the profiler

    am i misunderstanding you?

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Debugging Custom Action

    Hi,

    Debugging a custom action is same debugging a plugin using plugin profile and profiling the steps.

    I assume you have added the plugin code on your custom action and register the steps.

    Please mark my answer verified if i were helpful

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Debugging Custom Action

    Yeah. There was a misunderstanding. I thought you have a plugin that sits on the backend that handles your message.

    So you're basically calling custom workflow activity from your action. In this case, in order to troubleshoot it as you would do it with Custom Workflow Activity and that never worked fine for me.

    I would recommend to refactor the code and turn your custom workflow activity to the plugin that handles your custom message.

  • liranelisha Profile Picture
    on at
    RE: Debugging Custom Action

    Bipin Kumar - I have added the code to the plugin assembly and registered it using the plugin registration tool. i then added it to the action like in the image before

    i haven't registered it as a new step like plugin

    pastedimage1623769009257v1.png

    should i? what parameters should i put in the step? the action isn't running in entity scope so i'm also wondering how will the register step form should be filled

  • liranelisha Profile Picture
    on at
    RE: Debugging Custom Action

    Andrew Butenko - this is what i tried. it is important to mention that i created an action that i run from code. there is not custom workflow in here:

    community.dynamics.com/.../crm-2016---when-to-use-an-action-process-vs-a-workflow

    as you said to try to debug custom workflow - this is the first image. i tried to debug it but the profiler didn't even see the actions...

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Debugging Custom Action

    What I recommend is to refactor your custom worflow activity that you call from action to Plugin and register that plugin to handle the message of your custom action - you will have full access to input/output parameters of your action and you will be able to debug it as a regular plugin.

  • liranelisha Profile Picture
    on at
    RE: Debugging Custom Action

    Andrew Butenko - how do i register a step to an action? i'm asking about the technical part here - what parameter do i add to the step form and such

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 127 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans