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

Announcements

No record found.

News and Announcements icon
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)
  • Suggested answer
    Sascha Buerk Profile Picture
    25 on at

    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

  • Shubham Dhumal Profile Picture
    5 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans