Sub Workflow and With Items Overview

These two crucial features will elevate your automation skillset, setting you up to create highly efficient workflows.

Module Overview

It's time to put a workflow in a workflow...making it a "sub-workflow" and creating a "parent/child" relationship.

Video (5:38 Minutes)

Log into Rewst and complete the following steps

Step 1: Adding a Sub Workflow
  1. Search Add or Remove User in the Search Actions search bar.

  2. Add the Add or Remove User workflow into the current workflow.

  3. Select the sub workflow.

  4. Rename the workflow "update_groups".

Step 2: Configuring Sub Workflow Parameters
  1. Select the Jinja Editor for the action field.

    • Enter {{ CTX.action }}

    • Close the Jinja Editor

  2. Select the Jinja Editor for the user_id field.

    • Enter {{ CTX.user_id }}

    • Close the Jinja Editor

  3. Select the Jinja Editor for the group_id field

    • Enter {{ item() }}

    • Close the Jinja Editor

Step 3: Configuring WIth Items
  1. Select the Advanced tab

  2. Select the Jinja Live Editor for the With Items field

    1. Enter {{ CTX.group_ids }}

    2. Close the Jinja Editor

  3. Publish the workflow

Action Item

Test the "With Items" feature with other actions in Rewst to see how it performs and functions.

Last updated