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: if (localContext.PluginExecutionContext.InputParameters.Contains(“ArgumentName”)) { string stringInputArgument = (string)localContext.PluginExecutionContext.InputParameters[“ArgumentName”]; } else { //Your code for case when Argument was not passed } …
Tag: Actions
Actions, input parameters and “Object reference not set to an instance of an object” exception
While playing with Actions, I wrote a simple .Net code that invoked the execution of an Action: slick_CustomActionsTestRequest request = new slick_CustomActionsTestRequest() { BoolInArgument = true, DateTimeInArgument = DateTime.Now, DecimalInArgument = decimal.Zero }; slick_CustomActionsTestResponse response = service.Execute(request) as slick_CustomActionsTestResponse; During testing, I got a really weird and unclear error – “Object reference not set to …
Microsoft Dynamics CRM 2013: Actions: deployment of plugins through CRM Developer Toolkit
I played with the new version of the CRM Developer Toolkit and wasn’t able to find a way to register a plugin that handles the action using UI. The following post describes the workaround how to make it possible.
Microsoft Dynamics CRM 2013: Actions walkthrough for .Net and JavaScript developers
I believe that almost every developer for Dynamics CRM has faced a scenario where he/she had to invoke some complex logic on a server side, pass parameters and receive a response back. Before CRM 2013, we used workarounds similar to this one. When Dynamics CRM 2013 was released, we got a solution that would not …