Skip to main content

Notifications

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

  • 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans