
MatthewH.10249 (State of Iowa) asked a question.
Are there environmental variables available in compose cards or elsewhere in Workflows?
My initial usecase had a need to get the name or URI of the tenant the Workflow is running on. For now I'm using a compose card and manually set a value needed throughout the Workflow, but if there was a prebuilt value I could access or some other way to achieve what I'm trying it might be nice so I don't have to modify the Workflow when I move it to a different tenant.
I'm wondering if something similar to EL variables like "${org.name}" used to customize Okta emails exists for Workflows. https://help.okta.com/en/prod/Content/Topics/Settings/settings-EL-other.htm
Thank you!

Hi Matthew,
My name is Blake. There is currently no concept of environment variables similar to EL variables in the workflow designer.
One option would be to store your environment and/or configuration variables in a table. Then you could use the Tables Read Row Card to retrieve the variables from different workflows.
Another option would be to use the Flow Control Assign Card to create a variable, similar to what you are doing with the Compose Card, but with the flexibility of being able to specify the data type.
Thanks for the quick response and creative ideas!
For now based on your feedback I thought of another idea and went with it. I created a child flow in a Workflow folder called "Utilities" where I have other generic child flows that can be called by business flows found in other folders. The new flow I called "GlobalVariables" and in it I use the "Object Construct" card and then return the resulting object using the "Flow Control Return" card. Constructing an object has the same benefit you mentioned in one of your ideas as it allows flexibility of being able to specify the data type. I could have also leveraged both of your ideas in this child flow so I have a few options if my basic object construction idea has some unforeseen limitation down the road.
Great idea, thanks for sharing!