cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Microsoft Flow syntax

Dear Team,

 

I am new to Microsoft Flow. I want to build Flow to alert by email to respective user by using read information from excel file and validate the condition.

Firstly, I tried to create excel file which contain formular, but it seems Flow doesn't support the link excel file that contains formular. I stopped that way. 

 

Secondly,  I create raw data input with contain date for comparison. However, I tried to use expression to compare my data through condition. I never get clues after applied the expression function. 

 

My question is how can I get date from excel and convert it to INT?

 

Please let me know, if you have any doubts on my question above. 

 

Thanks,

Phearin

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Microsoft Flow syntax

Hi @phearin,

 

There are currently no such third parties that allow us to test, but the usage of many functions is similar to the principles in other languages.

You could refer to the Online doc for more on the usage of Expression:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#functions

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

If your problem has been resolved, please mark it.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Kudo Commander
Kudo Commander

Re: Microsoft Flow syntax

Hey,

In terms of date in excel it depends on the exact date format stored in it. 

 

Anyway in Flow condition you can switch to advanced mode where you can write your own expressions (check documentation if needed https://msdn.microsoft.com/en-us/library/mt643789.aspx)

 

The date comparison you can do by following expression @equals('2019-01-24',utcnow('yyyy-MM-dd'))

 

Highlighted
Helper III
Helper III

Re: Microsoft Flow syntax

Hi Mike, 

 

Thank for your feedback. 

 

Actually, I want to perform date substraction. However, the date is string, so can we do expression to covert date string to integer? 

 

Ex: Sub('2019-01-10',utcNow('yyyy-mm-dd')) //This is just expression example only, might be it is not correct syntax.

Thanks,

Phearin 

Highlighted
Community Support
Community Support

Re: Microsoft Flow syntax

Hi @phearin,

 

First, if the corresponding field is a Date type in the Excel table, it will automatically become the number type in Flow. You can try.

And if the date value you get is in String format and you want to subtract the two dates, you could use the following Expression.

 

div(sub(ticks(utcNow('yyyy-MM-dd')),ticks('2019-01-10')),864000000000)

3.PNG4.PNG

 

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper III
Helper III

Re: Microsoft Flow syntax

Hi @v-bacao-msft,

 

Finally, it is working. I have an idea from your clue and apply to my real flow and it return correct value.

Thank again for your support. 

 

One more thing, I just want to know whether Expression which available in Flow has any third parties to test each function before we use it or not? 

 

Thanks,

Phearin 

Highlighted
Community Support
Community Support

Re: Microsoft Flow syntax

Hi @phearin,

 

There are currently no such third parties that allow us to test, but the usage of many functions is similar to the principles in other languages.

You could refer to the Online doc for more on the usage of Expression:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#functions

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

If your problem has been resolved, please mark it.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (7,599)