Create user notification

Use this step to create user notification.

Last published at: July 13th, 2023

createUserNotification Step

Description:

Create a user notification for a selected number of users.

 

Inputs

  • assignTo – list of users to assign the notification
  • assignToRoles– Roles user to assign the notification 
  • subject – subject for the notification
  • Message- description for the notification
  • emailNotify- Send email for notification
 

 

Returns

  • completed – notification was created
  • error – notification was not created
 

 

Usage:

 

 

Example:

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

  • Create a new definition called “createUserNotificationDef” 
  • Select the definition and click the “design” button
  • Drag and connect the "createUserNotification" step as shown in the above graphic
  • Click the "createUserNotification" step to configure its "Settings" properties. Provide a name to the step. Provide the subject text information.

 

  • Click on the "createUserNotification" step to configure its "Advanced" properties. Click on the button to select users to assign to. Click on the button to choose application roles to assign to. Click on the button to configure the notification message. Select if an email is to be sent to the user along with the notification. 

 

  • Click on the button to select users to assign to. Click on Select the users to route to and select users or provide variable reference containing UserIDs (GUID)

 

  • Click on the button to select application roles to assign to. Click on select roles to route to and select the application role.

 

  • Click on the button to configure the notification message. Click on Message and use the existing template (you can edit the existing template as well) as the email body or create a custom template as the message.

 

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

 

  • Save the process definition. Create a new process instance and execute it. The process step should create the notification to the users/roles and send an email, as configured. Navigate to Status—Email Queue to view the user notification emails. 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.

Click here to download the sample file.