Trigger Flow If Account Is Missing During Task Assignment
  • 14 Apr 2025
  • 1 Minute to read
  • Dark
    Light

Trigger Flow If Account Is Missing During Task Assignment

  • Dark
    Light

Article summary

Feature Details
Introduced in Version9.9
Modified in Version--

Overview

The "Trigger Flow If Account Is Missing During Task Assignment" behavior is a special Flow type that enables automatic account creation when assigning a task to a user who does not yet exist in the system.

This document demonstrates how to configure a Flow that retrieves the email address from the assignment and creates a user account if one is missing, ensuring that task assignments can proceed without interruption.

Note: This Flow also works with external SSO providers. Although authentication is managed externally, Decisions requires internal accounts to assign tasks. The Flow ensures these accounts are created when missing.


Example

Configuring Assignment Form

  1. Open the Form you want to assign to a user who does not yet have an account.
  2. In the Form Properties, go to Assignment Setup and click Edit.
  3. In the Assignment Setup dialog:
    1. Under Form Data > Accounts and Groups, type in the user account or pass it via Flow.
    2. Click Done when finished.

Note: If a validation error appears on the Assign To field on the Form, you can safely ignore it.


Creating the Flow

  1. Navigate to Designer Folder > click Create Flow.
  2. In the Create Flow dialog, search for "Trigger Flow If Account Is Missing During Task Assignment".
  3. Select the behavior, give a name, and click Create.
  4. In the Flow Designer, search for Create Account in the Toolbox and drag the step onto the canvas.
  5. In the Step Properties:
    1. Map the Email Address field to the Flow input: Email Addresses.
      Note: To create multiple accounts, use a ForEach Step.
    2. Enter a Password manually or define logic to generate one.
      Note: Ensure the password settings in the portal settings are respected.
  6. Save and close the Flow.


 Configuring the Portal Setting

  1. Go to Settings > Portal Settings.
  2. Scroll down and Enable the setting: "Trigger Flow If Accounts Is Missing During Task Assignment".
  3. A new field, "Pick Create Missing Accounts For Assignments Flow," gets exposed.
  4. Select the newly created Flow from the respective project. 
  5. Click Save to apply the setting.


Confirming Account Creation

  1. Run the Flow with the Assigned Form step.
  2. Go to Settings > Security > Accounts
  3. Verify that the accounts entered in the Form Assignment have been successfully created.



Was this article helpful?

What's Next