How to Create, Configure, and Trigger an Option Generator Workflow
Implement the sketch from the previous module by creating an Options Generator, configuring its initial inputs and output, and setting up the appropriate trigger.
Module Overview
💡 Planning a workflow before building speeds up the process by sorting out logistics upfront, so you can focus on execution later. The inputs and outputs are key to this module—without them, the options generator won't work.
Video (4:23 Minutes)
Log into Rewst and complete the following steps.
Step 1: Create a Workflow
Create a new workflow called "Option Generator for Microsoft Groups."
Personalize the name and add tags to your liking.
Select the pencil icon to configure the workflow settings.
Select "Option Generator" for the workflow type.
As a bonus, this will add an "option gen" tag to your workflow, so you can easily filter for those in your list of all the workflows.
Add Time Saved
Add the Input Configurations
user_id
action
Add the Output Configuration
Field Name: options
Select the Jinja Editor Icon
EnterCTX.group_list
7: SelectSubmit to save the settings
Step 2: Add Workflow Trigger
Select the lightning bolt to add a workflow trigger.
Enter "option generator" for the name
Toggle Enabled to enable the trigger.
Search for "always" in the "trigger type" dropdown
Select 'Core - Always Pass.'
The workflow will trigger as soon as we have a "user" and an "action" selected - before the form is submitted.
Select Microsoft Graph for integration override.
Select your own organization
Test with a user you're comfortable with (maybe yourself).
If you want to use this process for your customers, refer to the optional instructions below.
Submit to save the trigger.
Optional: Instructions for All Managed Organizations
Step 1: Configure the Trigger
Configure the trigger Option Generator for Microsoft Groups
Activate Trigger to Run For: Toggle "All current(#) and future managed organizations"
Step 2: Creating an Options Generator for Users
Create a new workflow
Name the workflow Users Option Generator
Configure the Workflow settings
Workflow Type:
Options Generator
Output Configuration:
Field Name: options
Value: {{ CTX.users }}
Select Submit
Add the Microsoft Graph action List Users
Create a Data Alias in the List Users action.
Key: users
Value: RESULT.result.data.value
Add a Trigger
Name: Graph Users Always Pass
Toggle Enabled
Trigger Type: Core - Always Pass
Integration Overrides: Microsoft Graph
Activate Trigger to Run For: Toggle "All current(#) and future managed organizations"
You can always pick and choose specific organizations.
Step 3: Connect the Users Option Generator to the User Field.
Navigate to the Form hcreated in Lesson 2
Select the User field
Toggle Workflow Generated
Select the Users Option Generator
Change label to displayName under Label Field
Select the Trigge
Action Item
Create a workflow and configure its properties, inputs, and outputs to function as an Option Generator.
Setup a trigger for the Option Generator workflow.
Add an Integration Override to the Option Generator so it can be used across all your managed organizations. This ensures the workflow is flexible and scalable for different environments