Skip to main content

Flow Trigger How To's

How to's for the Flow Trigger guide.

How to Trigger Multiple Flows from a DataGrid

This guide explains how to configure the Flow Trigger object to start multiple processes using a DataGrid control in the form.

Step-by-Step Instructions

  1. Add Flow Trigger to the Workflow

    • Drag the Flow Trigger object to your flow diagram.
  2. Add DataGrid to the Form

    • On the form connected to the document, place a DataGrid control.
    • This will be used to provide parameter values for each triggered process.
  3. Configure Source Properties

    • Document: Select the document containing the form with the DataGrid.
    • Control Name: Select the name of the DataGrid control.
  4. Configure Trigger Properties

    • Project: Choose the project that contains the target flow.
    • Flow: Select the flow to be triggered.
    • Parent ProcessId (optional): Use ({{ProcessId}}) or a variable for linking parent and child processes.
    • Show in Flow History: Enable to display the trigger in the flow history.
  5. Configure Parameters

    • Click the Parameters field.
    • For each parameter:
      • Name: Name of the variable in the triggered flow.
      • Type: Select Control if using DataGrid.
      • Value: Choose the DataGrid column that maps to the variable.
  6. Test Your Flow

    • Run the process and ensure each row in the DataGrid results in a separate flow being triggered.

How to Trigger a Single Flow with Parameters

How to Trigger a Single Flow with Parameters

The Flow Trigger object can be used to launch another process within the same or different project. Here’s how to set it up for triggering a single flow.

Step-by-Step Instructions

  1. Place Flow Trigger in Your Workflow

    • Drag the Flow Trigger component onto your flow design surface.
  2. Open Properties Panel

  3. Configure the Trigger Section

    • Project: Select the destination project.
    • Flow: Select the target flow you want to initiate.
    • Parent ProcessId: Enter ({{ProcessId}}) to link the current flow as parent.
    • Show in Flow History: Enable if you want this action visible in history.
    • Starter User: Set a user (e.g., ({{FlowStarter.UserId}})) who will appear as the process initiator.
    • Starter User Type: Choose UserId or UserName according to your input.
    • Process Count Variable (optional): Map to a variable in your current flow to capture how many processes were triggered.
  4. Define Parameters

    • Click the Parameters button.
    • Add rows for each variable that the triggered flow expects:
      • Name: Must exactly match the variable name in the target flow.
      • Type: Choose from String, Number, Boolean, DateTime, or Control.
      • Value: Enter static values or use expressions like ({{Document1.DocumentId}}).
  5. Save and Deploy

    • Once configured, deploy your flow and test it using a test run or a real process.