Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Prepare a workflow to use a subflow

Log in to subscribe to topics and get notified when content changes.

Prepare a workflow to use a subflow

After you create a subflow, use this procedure to prepare the parent workflow.

  1. On the parent workflow, create a variable similar to what you did on the subflow, but name it something different.

    In the following example, the variable is named Blue Main Variable.

    Creating input variables for the workflow
  2. Click Submit.
  3. Insert a Run Script activity to return the value from a field to the newly created variable.

    In this example, the value of the Short Description field is returned and given to the newly created variable.

    workflow.scratchpad.bluemainvariable = current.short_description;

    Run script activity properties
  4. Click Submit.
  5. In the subflow activity, set the Blue Sub Variable to pass the bluemainvariable to the bluesubvariable.


    This is what the main workflow looks like:
    Completed sample workflow with a subflow