cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AbbyG
Level: Power Up

Trigger email by end date in SharePoint list

Hi all,

I am trying to build a flow that sends an email to a shared Outlook 365 mailbox when the end date in a column within a SharePoint list is equal to today's date. I started by creating a Recurrence, then a Get items action from the site and list. I'm running into trouble trying to add the condition to only get the items if it's equal to today's date.  I'm pretty new to Flow so I wanted to check w/ the experts here for help in doing this. 

 

Thanks!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Trigger email by end date in SharePoint list

@AbbyG 

My example below should help.

I use an OData filter in the Get items action so that only those items with an end date of today will be returned.  You can then loop through the items returned and take action as appropriate. Because I use a filter, you won't need a condition.

Please note that I refer to the End date in my query as EndDate - this may/may not work for you.  If you have an issue, run your Flow without the filter and see how the End Date column is referred to in the output - see screen shot below.  Also, note that I use an expression - I copied the expression that I used into the comment.  Also notice the single quotes around the expression in the filter.

EndDate2.jpgEndDate1.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Community Support Team
Community Support Team

Re: Trigger email by end date in SharePoint list

 

Hi @AbbyG ,

 

If End Date is a field of Date type and does not contain time, you can refer to the following method to configure Flow.

160.PNG

 

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

3 REPLIES 3
Dual Super User
Dual Super User

Re: Trigger email by end date in SharePoint list

Hi @AbbyG 

 

use expressions

 

formatdatetime(utcnow(),'yyyyMMdd'
this will give you todays date
 
and then compare it with (using condition equals)
formatdatetime(dynamiccontentdatefield,'yyyyMMdd')
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Super User
Super User

Re: Trigger email by end date in SharePoint list

@AbbyG 

My example below should help.

I use an OData filter in the Get items action so that only those items with an end date of today will be returned.  You can then loop through the items returned and take action as appropriate. Because I use a filter, you won't need a condition.

Please note that I refer to the End date in my query as EndDate - this may/may not work for you.  If you have an issue, run your Flow without the filter and see how the End Date column is referred to in the output - see screen shot below.  Also, note that I use an expression - I copied the expression that I used into the comment.  Also notice the single quotes around the expression in the filter.

EndDate2.jpgEndDate1.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Community Support Team
Community Support Team

Re: Trigger email by end date in SharePoint list

 

Hi @AbbyG ,

 

If End Date is a field of Date type and does not contain time, you can refer to the following method to configure Flow.

160.PNG

 

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 467 members 5,994 guests
Recent signins:
Please welcome our newest community members: