Change Process Data Variable Values

To change process data variables in your process, do the procedure in this topic.

Update Custom Attributes Screen



Good to Know

How to Start

  1. On the Organizer, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, in the Activity Library, open the Common tab.
      2. On the Common tab, drag the Update Process Data activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.
  3. On the Update Custom Attributes screen, click Update Custom Attributes.

Procedure

  1. On the Update Custom Attributes screen, complete these fields.
    Field Name Definition

    Process Data Variable

    Function:
    Specifies the name of the process data variable that stores the return value for your code snippet.
    Accepted Values:
    • A process attribute variable
    • An XML process variable
    Default Value:
    None
    Accepts Process Data Variables:
    Yes
    Example:
    • Process attribute variable - EmployeeName
    • XML process variable - /pd:myFields/pd:empName

    Expression

    Function:
    Specifies a value your code snippet gives the process data variable.
    Accepted Values:
    A C# code snippet. The following rules apply:
    • You can specify simple expressions only. For example, assignment, call, increment, decrement, and new object expressions.
    • The string value must be enclosed within the quotation marks. For example, "Name".
    • You cannot leave the Expression field empty.
    Default Value:
    None
    Accepts Process Data Variables:
    Yes
    Example:
    • "True"
    • @"AP5\John; AP5\Bob; AP5\Lily; AP5\Fred";
  2. To validate your code, click Verify .