cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Find Today() date on an Excel file then send email.

Hi all, first post here and practically new to Flow,

I need to create a Flow which finds a date on an Excel file column named NotificationDate, if date matches today's date (dynamic) send an email to email@domain.com

 

the sending email part is clear to me, but not how to compare each cell for the defined column and trigger that email.

 

What should be the format for the date cell on the excel file?

what's the expression needed to compare the dates?

 

the whole purpose of this is to create a list of contracts and licenses with their respective expiration date and trigger email notifications 30 days prior to the expiration date. Recurrence would be every day at 11AM.

 

I would be great if the Excel table which stores my data could be sent on those notifications.

 

thanks in advance.

Mario F.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Find Today() date on an Excel file then send email.

Hi @mayoal,

 

If here you only want to compare Excel date with today() then we could specify the condition as below:

37.PNG

 

Formula reference:

@equals(
   formatDateTime(items('Apply_to_each')?['Date'], 'yyyy/MM/dd'),
   UTCNow('yyyy/MM/dd')
     )

Regards,

Michael

Community Support Team _ Michael Shao
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

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: Find Today() date on an Excel file then send email.

Hi @mayoal,

 

If here you only want to compare Excel date with today() then we could specify the condition as below:

37.PNG

 

Formula reference:

@equals(
   formatDateTime(items('Apply_to_each')?['Date'], 'yyyy/MM/dd'),
   UTCNow('yyyy/MM/dd')
     )

Regards,

Michael

Community Support Team _ Michael Shao
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

Highlighted
Regular Visitor

Re: Find Today() date on an Excel file then send email.

That's exactly what I needed

 

Now, I will try to email me the complete row with the matching date so I don't have to open the Excel file.

 

Thanks a lot for your help.

Highlighted
New Member

Re: Find Today() date on an Excel file then send email.

 Hi @v-micsh-msft 

My case is similar to Mayoal. I have 2 columns in excel, one is "Userid", another one is "Date". I want to send email to those email address stored in column "Userid" if  the column "date" equal to today(). 

I got error " ActionFailed. An action failed. No dependent actions succeeded." on the "send email " action. Any idea? 

Thanks

 

image.png

Highlighted
New Member

Re: Find Today() date on an Excel file then send email.

Hi @ssw

 

Did you ever find your solution to this? got more or less the same scenario and wondered how you resolved this and if you can share your solution please.

 

Thanks

Highlighted
Regular Visitor

Re: Find Today() date on an Excel file then send email.

Hi, I did got this working

mi condition is like this:

@equals( formatDateTime(items('Apply_to_each')?['NotificationDate'], 'yyyy/MM/dd'),

where NotificationDate is the date I want this Flow to email me when found.

This flow needs more love, when the date matches I do get the email as expected but it sends me the whole file, not just the info with matching date.

 

Hope this helps, and I would really appreciate if someone knows how to get my Flow sending only matching data.

Highlighted
New Member

Re: Find Today() date on an Excel file then send email.

Will feedback if I can get this working as that would be ideal!

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (6,871)