Forum Discussion
Compare excel data with actual date in Power Automate
I have a list of all upcoming Teams live events with date and time within an excel sheet.
The idea is to compare the current date with the ones in the excel sheet and if there is a scheduled meeting today the shortURL should be changed to the corresponding URL stated in the excel.
The changes for the shortURL works via a REST API perfectly. But unfortunately I'm not able to figure out the Excel part.
I'm able to list the rows present in a table and also to convert them into date/time format, but I'm not able to compare them with the actual date.
I guess it's pretty easy to accomplish for a pro.
Thanks in advance.
Hi Thomsch,
Add an OData filter to the Excel "List rows present in a table" action to find events that are occurring today.
Here is the expression:
div(sub(ticks(utcNow('yyyy-MM-dd')),ticks('1899-12-30T00:00:00')),864000000000)
Important: there are single quotes (' ') around the expression.
I hope this helps.
Norm
- ThomschIron Contributor
stormin_30 thanks. This helps me out a lot!
I actually have two appointments each Tuesday. And the meeting link is different for both of them.
How would you proceed to check which one of the meetings is the right one for the link to change.
Hi Thomsch,
You will need something to further filter or connect the meeting to the link. Perhaps a unique meeting name? I don't think ID, Date and URL are enough.
I hope this helps.
Norm