cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
phearin
Level: Powered On

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
Community Support Team
Community Support Team

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

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'))

 

phearin
Level: Powered On

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 

Community Support Team
Community Support Team

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.
phearin
Level: Powered On

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 

Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,232)