cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AJGilbey 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?

14 REPLIES 14
xrobfox
New Member

Re: Workflow Variables in Microsoft Flows

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

 

"@{addhours(utcnow(),4)}"

Power Automate
Power Automate

Re: Workflow Variables in Microsoft Flows

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

patrickabel Helper I
Helper I

Re: Workflow Variables in Microsoft Flows

@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

Power Automate
Power Automate

Re: Workflow Variables in Microsoft Flows

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

patrickabel Helper I
Helper I

Re: Workflow Variables in Microsoft Flows

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

kinobijei
Frequent Visitor

Re: Workflow Variables in Microsoft Flowsllo

Hello, are there news on this feature??

RKushner Advocate III
Advocate III

Re: Workflow Variables in Microsoft Flowsllo

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

Power Automate
Power Automate

Re: Workflow Variables in Microsoft Flowsllo

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: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

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

 

 

 

efialtes Kudo Kingpin
Kudo Kingpin

Re: Workflow Variables in Microsoft Flowsllo

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 https://flow.microsoft.com/es-es/blog/error-handling/

 

However, when dealing with "set variable" there seems to be a bug according to https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-Variables-Set-Variable-quot-The-request-cont...

Microsoft
Microsoft

Re: Workflow Variables in Microsoft Flowsllo

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

 

Do you know how it works?

Highlighted
efialtes Kudo Kingpin
Kudo Kingpin

Re: Workflow Variables in Microsoft Flowsllo

@vfortes

First you have to include the action to initialize it. 

Hope this helps!

Power Automate
Power Automate

Re: Workflow Variables in Microsoft Flowsllo

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:

 

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-Variables-Set-Variable-quot-The-request-cont...

 

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

 

Best,

Travis

mr_zinger
New Member

Re: Workflow Variables in Microsoft Flowsllo

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. 

 @{outputs('Authorize')['headers']}

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

 

LozzieD Advocate II
Advocate II

Re: Workflow Variables in Microsoft Flowsllo

"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 ...

 

https://www.thurrott.com/mobile/microsoft-surface/132832/heres-microsoft-saying-internally-surface-q...

 

"A diificult computer sicence problem", my rse.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,892)