Hi
I have created a flow which uses an Excel table with product batch numbers as input
One of the columns in the Excel table is "expiration date"
I would like to calculate the number of days between UTCNow and Expiration Date for each index in the array (Apply to each) and add the value as an additional column to the HTML table.
I know how to calculate the data difference by using ticks from UtcNow() and Expirations date, but I cannot figure out how to add the "dateDiff" to my output Excel array/ Input HTML
Solved! Go to Solution.
Add a select action right after your Excel action. Use the excel data to populate the columns and create a new column with a name of your choosing and then put your expression to calculate the difference in the new column.
You'll have to use item()['expiration date'] as the input variable in your expression.
Then use the output of your select to build your HTML table.
Add a select action right after your Excel action. Use the excel data to populate the columns and create a new column with a name of your choosing and then put your expression to calculate the difference in the new column.
You'll have to use item()['expiration date'] as the input variable in your expression.
Then use the output of your select to build your HTML table.
@djpejsen please use the expression below:
div(sub(ticks(utcNow('yyyy-MM-dd')),ticks(formatDateTime(<YourExpirationDateDynamicContent>,'yyyy-MM-dd')),864000000000))
My current flow
Hard to tell from the screenshot, but I think this is what you need to do:
the final solution
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
40 | |
37 | |
32 | |
31 |
User | Count |
---|---|
52 | |
39 | |
35 | |
33 | |
24 |