It would be nice to be able to set and use variables in workflows, and apply basic scripting to said variables.
Variables would be exposed as "BetterCloud" actions, much like the "Wait" action is. Variables could be set from various existing connector variables, or from user/admin input.
Some examples of how variables would be useful:
- Onboarding/offboarding users
An admin could manually input $user_details variables and manually run a workflow. Using these variables, the workflow could provision the user in all connected services at once.
During the running of a workflow, variables could track names, quantities, or other items, and send emails to users. (This would differ from the upcoming "workflow status emails" feature in that the emails would be to users.) It's nice to notify a user that they have exceeded a limit. It's even nicer to tell the user how much they exceeded the limit by.
- Auto-Adjusting Time Windows
This would tie in nicely with the upcoming "time windows" feature. For example, an auto-lockout workflow could set a variable of $lockout_time, dependant on how many failed login attempts were actually attempted.