Introduction to Option Generators
Create an option generator workflow designed for a Rewst form field + Use a data alias to store the "options" for a form field and accurately map those options in workflow output configuration
Module Overview
💡 When automating processes like "Add or Remove User - Microsoft Group," it's crucial to ensure that the options provided are dynamic, not static. If we continue using the same list of groups for every user and action, we waste time and potentially make errors by automating something that doesn’t apply. Here’s how we can fix that using an option generator workflow.
Video (6:08 Minutes)
Introduction to Option Generators
An option generator workflow allows us to provide tailored options (like a list of groups) based on the user and the action they choose. For example, depending on the user and whether they want to add or remove someone from a group, the list of groups should change accordingly. This workflow dynamically generates the options, so they're always relevant to the task at hand.
Action Item
Practice creating a simple option generator workflow in Rewst.
Use a data alias to store and filter options based on a user’s action (e.g., add or remove).
Map the context variable
group_list
to your workflow’s output configuration using Jinja syntax.
Navigation
Go back to the lesson page: Lesson 4: Creating an Option Generator Workflow
Go to the next module:
Last updated