Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Set Value in output String Parameter in CRM 2011 Custom Workflow

$
0
0

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>");
    }



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>