Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Workflow Variables in Microsoft Flows

Has anyone found the ability to add and use workflow variables in the new Microsoft Flows?

New Member

I have managed to work with functions by putting them between quotes, like so:



Power Automate
Power Automate

Variables within the flow are not currently supported, but will be added in an upcoming release. Thanks for the feedback!

@merwan what's the status on this feature? I'm trying to do some simple calendar event creation and am not able to leverage the same syntax I see in existing templates.

Screenshot (7).png

Hi Patrick, we're working on this functionality and plan to release it soon. Thanks for your patience and feedback. 

Thanks @merwan! I was able to get past the above issue leveraging a time API ( and HTTP request but variables and inline-functions would be greatly appriciated!

Frequent Visitor

Hello, are there news on this feature??

Any updates? This seems like a more fundamental and essential business feature for minimal workflow, much more than connecting to twitter!!!

Adding a first class function editing experience in Flow continues to be on our backlog and something we plan to address in the future. However, in the meanwhile, here's a workaround you can employ. 


1. In your flow, add a compose card. 

2. In the Compose card, you can execute workflow functions specified here:

3. An example to get today's date in the format of 2017-05-16, I would do: "@utcnow('yyyy-MM-dd')"




I just found new actions: "Initialize variable", "set variable" and "increment variable". When initializing a variable, the following fields must be filled: name, type (boolean, integer, floating, string, object, matrix) and optionally value. I guess "Increment variable" is only valid for integers and floats, according to


However, when dealing with "set variable" there seems to be a bug according to

I'm trying to use "Set variable" without success.


Do you know how it works?


First you have to include the action to initialize it. 

Hope this helps!

Hi @vfortes,


SetVariable is currently bugged and isn't really working for anyone right now, unfortunately. We're hoping to get a fix out with next week's deployments starting on June 5th.


I'll be bumping the following thread with updates on the issue:


Thanks for letting us know about this issue! We appreciate the help!




Not applicable

There has been some time passed since the last post in this discussion, but I managed to make my WDL expression work in InitializeVariable by putting a space symbol before it. 


Without the space before the expression it doesn't work at all. God, this is so buggy product 😞


"God, this is so buggy product"


One does get the feeling that there is a huuuuge (with much Trumpian emphasis) disconnect between the MS development teams and the senior management.


The senior management even have to ask partner organisations like Lenovo to discover that MS developer output is rubbish, and the developers have been lying and blaming others to cover their tracks ...


"A diificult computer sicence problem", my rse.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,468)