Get a list of user emails

Use this step to fetch user's email by their User IDs.

Last published at: June 24th, 2023

clsGetUserEmails Step

Description:

Get a list of user emails.

 

Inputs

  • userNames - List of semicolon-separated usernames
  • varGlobalEmails - Variable/Global to hold the email list
 

 

Returns

  • True – step executed successfully 
  • False – step failed to execute
 

 

Usage:

 

 

Example:

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

  • Create a new definition called “clsGetUserEmailsDef”
  • Select the definition and click the “design” button
  • Drag a "clsGetUserEmails" step to the canvas
  • Connect the dots between the start and "clsGetUserEmails" step
  • Define a variable/global to store the result after execution
  • Click the "RESTCall" step to configure its "Settings" properties. Provide a name to the step. 

 

  • Click the "RESTCall" step to configure its "Advanced" properties. Provide a list of user GUID values (retrieved from the User management page) separated by semicolons. Provide a variable/global reference to hold the email list after the step is executed. 

 

  • 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. Render the process instance. Click on the process step to view its properties. The step should get the list of user emails and store in variable.emailList as configured.

 

Definition Sample:

You may download the sample definition from the link here and later import it (drag-drop) to your FlowWright Process (XML) and Form Definition (HTML) page. After import, you must verify the process steps and complete the database configuration, if any. 

 

https://github.com/FlowWrightCode/FW10Steps/blob/main/clsGetUserEmailsDef.xml