cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
forms-flows
Level: Powered On

Excel Online Date Filtering to Send Email within the next 6 days

I've seen many solutions that almost get there but don't close the loops. I've spent way to much time trying to figure this out.

 

I need to connect to an Excel online file, find rows that have a date in the next 6 days and then send an email to a recipient listed in the excel file. 

 

It should be pretty easy but i'm struggling. 

 

Hoping someone can point me in the right direction? 

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Excel Online Date Filtering to Send Email within the next 6 days

Hi @forms-flows ,

 

The premise of using Excel online related actions is that the table has been defined in Excel file.

If this condition is met and is the same as you described, there is a date field and a recipient field. You could refer to the following method to configure Flow.

 

I have had test on my side, create a new Excel table containing two fields, Date and Recipient.

45.PNG

  • Get all the rows using List rows present in a table action.
  • Configure Filter array to filter Dates for rows within six days.

Expression reference:

@and(lessOrEquals(formatDateTime(item()['Date'], 'yyyy-MM-dd'), addDays(utcNow(), 6, 'yyyy-MM-dd')),greaterOrEquals(formatDateTime(item()['Date'], 'yyyy-MM-dd'), utcNow('yyyy-MM-dd')))
  • Fill the filtered Recipient in Send an email action.

 

Image reference:44.PNG

Please take a try.

 

Best Regards,

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

2 REPLIES 2
forms-flows
Level: Powered On

Re: Excel Online Date Filtering to Send Email within the next 6 days

As a side note, it also seems like most solutions were developed prior to Microsoft making some changes to some of the scripting tools?

Community Support Team
Community Support Team

Re: Excel Online Date Filtering to Send Email within the next 6 days

Hi @forms-flows ,

 

The premise of using Excel online related actions is that the table has been defined in Excel file.

If this condition is met and is the same as you described, there is a date field and a recipient field. You could refer to the following method to configure Flow.

 

I have had test on my side, create a new Excel table containing two fields, Date and Recipient.

45.PNG

  • Get all the rows using List rows present in a table action.
  • Configure Filter array to filter Dates for rows within six days.

Expression reference:

@and(lessOrEquals(formatDateTime(item()['Date'], 'yyyy-MM-dd'), addDays(utcNow(), 6, 'yyyy-MM-dd')),greaterOrEquals(formatDateTime(item()['Date'], 'yyyy-MM-dd'), utcNow('yyyy-MM-dd')))
  • Fill the filtered Recipient in Send an email action.

 

Image reference:44.PNG

Please take a try.

 

Best Regards,

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 79 members 3,788 guests
Please welcome our newest community members: