In this insight you'll learn how to sneak round the back of the new Copilot Studio 'Workflows' UI to see what lies beneath (hint: it's still Power Automate) and get features that are hidden such as environment variables and more.
Problem
Copilot Studio Workflows, previously known as 'Agent Flows' look really cool but for some reason the new UI doesn't include well-loved and essential features such as environment variables which are essential for good Agent Lifecycle Management (ALM).
Sure, you can create a workaround by creating a Dataverse table called 'Environment Variables' but now you're opening the door to the scary world of post-deployment checklists and making your estate unnecessarily complicated to manage.
Wouldn't it be better if we could use those good old environment variables you've known and loved for years?
Solution
Here you can see the environment variable I've created - varExampleVariable
As you can see, in the Workflows UI, it isn't possible to find this using dynamic content...
Or expressions - pressing enter simply erases the expression as Workflows can't validate it.
So let's use my hack to get around the Workflows UI back to Power Automate.
While you're still in Workflows in Copilot Studio, copy the flow GUID from your URL.
We need everything from /flows/{GUID} until the question mark (?)
Now go to make.powerautomate.com, find the correct environment, paste your /flows/{GUID} onto the end of the URL, press enter and we're in.
Now that you've hacked the mainframe, you can add environment variables at your liberty.
Once you've saved and published, go back to Copilot Studio and click on your workflow.
Don't panic, just because you can't see the environment variable, doesn't mean it's not there, hit play and you'll see that the value pulls through correctly.
In edit mode:
After running the workflow
Et voila - environment variables in Copilot Studio Workflows.







