Hi,
I am trying to set string value in output String Parameter in CRM 2011 Custom Workflow but unable to do so.
Please refer my code below:
[Output("Workflow Status")] [DefaultAttribute("true")] public OutArgument<bool> Workflow_Status { get; set; } [Output("Workflow Exception1")] public OutArgument<string> Workflow_Exception1 { get; set; } [Output("Workflow Exception2")] public OutArgument<string> Workflow_Exception2 { get; set; } [Output("Workflow Exception3")] public OutArgument<string> Workflow_Exception3 { get; set; } catch (Exception ex) { // CR 10-11-2016 Workflow_Status.Set(executionContext, false); Workflow_Exception1.Set(executionContext, "<UpdateCaseAgeValue>"); Workflow_Exception2.Set(executionContext, ex.Message); Workflow_Exception3.Set(executionContext, "</UpdateCaseAgeValue>"); // CR 10-11-2016 // throw new Exception("<UpdateCaseAgeValue>" + ex.Message + "</UpdateCaseAgeValue>"); }