Actions: usage of input/output arguments in plugins that handle Actions

The main message is that input/output arguments are available in the InputParameters/OutputParameters’ collections of PluginExecutionContext.

Usage of Input argument
The following code shows how to check that the Input Argument was passed and got value:

Usage of Output Argument
The following code shows how to set the Output argument:

One thing you should remember is that step that handles your action and sets Output arguments has to be registered on Post Operation (40).
For those who use the CRM Developer Toolkit registration of new plugin, registration of your step in code of your plugin and part of RegisterFile.crmregister file is:

For those who use PluginRegistration tool:

Leave a Reply

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