Jump to content

User Configuration vs Environment Variables


Recommended Posts

Hi, is there a difference between variables defined in user configuration section of the workflow and environment variables? The only diff I could find is the variables in user configuration show up when user clicks "configure workflow". But they are accessed the same way code/workflow. Any other difference?

Link to comment

Yes, that is the difference. It’s a pretty significant one. Not only is it clearer for users it’s harder to get wrong. For example, with a popover button in Workflow Configuration you guarantee a certain variable will exist and that it will be one of a set of values. Same thing for checkboxes and marking values as required. That makes code way simpler with less error checking needed. In general you should give preference to Workflow Configuration.

Link to comment

Think of Environment Variables as workflow developer global variables / constants which will be seen throughout the workflow, and set on the scripting environment. If you're never intending to share your workflow, it'll probably be faster to just put variables and values in here.

 

User Configuration (Renamed Configuration Builder in v5.1) is designed to make it easier for users when you share your workflow. Any items needed to configure or tweak the configuration of your workflow can be presented to the user in a simple and consistent UI. This UI is also presented to the user when they install or update the workflow.

 

Under the hood, they are used in the same way.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...