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
Solved! Go to Solution.
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,
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'))
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
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)
Best Regards,
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
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,
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
34 | |
16 | |
14 | |
8 | |
8 |
User | Count |
---|---|
33 | |
24 | |
17 | |
7 | |
6 |