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,...
Suggested answer

Setting Input and Output Parameters in Plugins for Custom Actions - Dynamics 365 Unified Interface

(0) ShareShare
ReportReport
Posted on by 55

Hello Experts,

I have implemented the custom workflow activity which I am calling from the action by passing input parameters and getting output parameters, Just I want to convert this custom workflow activity into a Plugin, the custom action which I am calling in the JavaScript.

How do I get and set the input and output parameters in the plugin for custom action? the suggestions would be appreciated.

Thanks

-Sri

I have the same question (0)
  • Shubham Dhumal Profile Picture
    5 on at
    RE: Setting Input and Output Parameters in Plugins for Custom Actions - Dynamics 365 Unified Interface

    As you have created a custom workflow activity where you are passing input & output parameters.

    To convert to plugin:

    1. You will need to create plugin class library file.
    2. Implement IPlugin.
    3. To get the input parameters value the syntax is : "string inputParameter= context.InputParameters["InputParameterName"].ToString();".
    4. To set output parameters value the syntax is : "context.OutputParameters["OutputParametersName"] = outputParameter;".
    5. After done, register the plugin assembly & step.

    pastedimage1680774710067v1.png

  • Suggested answer
    Sascha Buerk Profile Picture
    25 on at
    RE: Setting Input and Output Parameters in Plugins for Custom Actions - Dynamics 365 Unified Interface

    You create a Custom Action. That looks like a workflow without a body. There you can define input and output parameters and set them required/optional.

    docs.microsoft.com/.../create-own-actions

    Then you can register your Plugin on that action instead of one of the default optins (like create, update, ...). Inside your plugin code you got dictionaries inside the Plugin Execution Context called InputParameters/OutputParameters. You can set your values there.

    docs.microsoft.com/.../understand-the-data-context

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 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 125 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans