GeneratePassword Step

Use this step to generate a new password of the desired length and with special characters.

Last published at: September 30th, 2026

Description:

The Generate Password workflow step generates a password according to the configured password length and character options. The generated password is stored in the specified FlowWright Variable or Global variable for use by subsequent workflow activities.

The step supports:

  • Specifying the password length.
  • Including numbers in the generated password.
  • Including special characters in the generated password.
  • Storing the generated password in a Variable or Global variable.
  • Passing the generated password to subsequent workflow steps.
  • Returning True or False to control subsequent workflow processing.

 

Inputs

  • PasswordLength – Specifies the length of the password to be generated.
  • IncludeNumbers – Specifies whether numbers should be included in the generated password.
  • IncludeSpecialChars – Specifies whether special characters should be included in the generated password.
  • GeneratedPassword – Specifies the FlowWright Variable or Global variable where the generated password will be stored.
 

 

Returns

  • True – The True return path can be connected to the next workflow activity after the password-generation operation completes successfully.
  • False – The False return path can be used for error handling or an alternative workflow path when the operation does not complete successfully.
 

 

Usage:

The Generate Password step is typically placed in workflows where a password needs to be generated dynamically during workflow execution.

The workflow specifies the desired password length, optionally enables numbers and special characters, and stores the generated result in a Variable or Global variable.

A typical workflow pattern is:

Request → Generate Password → Store/Use Password → Continue Process

You can then supply the generated password to another workflow step that needs it.

For example:

Create User → Generate Password → Create Account → Send Notification

The generated password is stored in the configured Variable or Global variable and can then be referenced by subsequent workflow activities.

 

 

Typical Workflow Suggestions:

Generate a Password for a New User

Use the step when a workflow creates a new user account and needs to generate a password dynamically.

Example:

Create User Request → Generate Password → Create User Account

Configure the required password length and character options, and store the generated password in a workflow Variable.

 

Generate a Temporary Password

Use the step to generate a temporary password as part of an account provisioning or onboarding workflow.

Example:

User Onboarding → Generate Password → Provision Account → Send Credentials

The generated password can be stored in a Variable and referenced by subsequent activities.

 

Generate a Password for an Administrative Account

Use this step when an administrative workflow needs to create credentials with configurable password characteristics.

Example:

Administrative Request → Approval → Generate Password → Create Account

The workflow can configure the required password length and enable numbers or special characters based on workflow requirements.

 

Generate Passwords During Account Provisioning

Use this step in an automated account-provisioning workflow where credentials are generated without requiring manual password entry.

Example:

Employee Data → Generate Password → Provision Account → Complete Request

The generated password is stored in the configured Variable or Global variable for use by later workflow activities.

 

Generate a Password Before Sending a Notification

Use the step when a workflow needs to generate a password and subsequently include the generated value in a notification or other downstream activity.

Example:

Account Request → Generate Password → Prepare Notification → Send Notification

The generated password is stored in a Variable and can be referenced by the notification activity.

 

Example:

Let’s build and execute the “GeneratePasswordDef” example.  

  • Create a new definition named “GeneratePasswordDef” and open it in designer mode. 
  • Drag a "clsGeneratePassword" step to the canvas.
  • Connect the dots between the “Start” and “clsGeneratePassword” steps, as shown above. 
  • Select the line between the steps to configure the “Connection Properties”. The default property values are “None, True, False, Error, and Evaluate”. Depending on the step’s purpose, you can configure additional values.
  • Define a variable or a global to store the generated password.
  • Click the "clsGeneratePassword" step to configure its "Required" properties. Provide a name for the step. Set the desired password length. Specify a variable or a global reference to store the generated password. Click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 

 

  • Click the "clsGeneratePassword" step to configure its "Advanced" properties. Select whether to include numbers and special characters in the new password.

 

  • The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. Configure the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties. 

 

  • Save the process definition, create a new instance, and execute it. This step should generate a password as configured.

 

Tips:

  • Specify an appropriate Password length before executing the step.
  • Use a Variable or Global variable with a meaningful name for the generated password.
  • Enable Include numbers when the workflow requires numeric characters.
  • Enable Include special characters when the workflow requires special characters.
  • Test the workflow with the intended password-length configuration before deployment.
  • Use the generated-password Variable rather than duplicating or manually entering the generated value in subsequent workflow steps.
  • Avoid unnecessary exposure of the generated password in workflow logs or documentation fields.
  • Carefully consider where the generated password is used or transmitted next.
  • Use the False return path for appropriate error handling.
  • Test both the True and False workflow paths.
  • When the generated password is used by another workflow step, verify that the output Variable is configured consistently.
  • Keep password-generation and credential-handling activities within appropriate access-controlled workflows.

 

Definition Sample:

You may create a FlowWright process definition that includes the Generate Password step and configure it to meet the workflow requirements.

When configuring the step, verify:

  • Password length.
  • Whether numbers should be included.
  • Whether special characters should be included.
  • Variable or Global variable used to store the generated password.
  • Workflow references to the generated-password Variable.
  • True workflow path.
  • False workflow path.
  • Environment-specific workflow configuration.

After verifying the configuration, save the process definition before executing a process instance.

Click here to download the sample file.