Compare excel data with actual date in Power Automate

Iron Contributor

I have a list of all upcoming Teams live events with date and time within an excel sheet.

Excel links.png

 

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.

Screenshot Power Automate.png


I guess it's pretty easy to accomplish for a pro.

Thanks in advance.

 

 

 

 

5 Replies

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)

 

stormin_30_0-1600513730787.png

Important: there are single quotes (' ') around the expression.

 

I hope this helps.

 

Norm

 

@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

 

 

@stormin_30 Would it be possible to look for the next/nearest meeting regarding time? 

Hi @Thomsch,

 

I'm sure that's possible. In the "List rows in a table" action add:

  • "Date" to "Order By"
  • "1" to "Top Count"

I have not tested this but it seems reasonable to me.

 

I hope this helps.

 

Norm