I'm still new to flows and I'm trying to create a flow that checks the 'Reminder Date' column on each item in a Sharepoint list every day at 12:00am and if the date in that column matches today's date, an email is sent with the title of that item. Could you please help figure this out?
Thank you very much in advance!
I created a flow recently that does something very similar.
1) First of all I'd create a view in your SharePoint list to only show items that had a reminder date of [Today]. In my picture below I'd called that column 'Task due date'.
2) So now we need to go to flow and set the trigger as a 'Recurrence'. Make sure when you select a time for the flow to run that you select a timezone overwise it won't trigger.
3) We now use the 'Get items SharePoint' action. Enter your site address and find the list in the drop down and in the 'Limit Columns by View' drop down select the list view that you created in step 1.
4) We now use a 'Send an email' action which should show as an 'Apply to each' once it's created so if multiple entries are found in your list view it will do this action for each entry it finds. In the 'Send an email' action you can add dynamic content from the list item such as 'Title' and 'Reminder Date'. I even added the task owner in our SharePoint list so that we can add the task owner as the recipient of the email (see pic below). Obviously ignore all the other dynamic content I'm using in my example as you won't have those fields in your list.
Hope that helps but give me a shout back if you need anymore detail.
Thank you very much! The 'Send an email' action doesn't really show 'Apply to each' I had to use the 'Apply to each' action for it to look like what you showed me in the snapshot. I followed the steps and the view doesn't have any items (because none of their reminder dates matches today's), I did a test and received an email for each item in the default list view (27 of them).
Please see the snapshot below. Am I missing something?
Thank you again!
I'd need to see the screenshot of your filter I think to help understand.
Please can you show me a screenshot of that?
Please see below
I even changed the reminder date of one of the items to today's and it shows up when I use this view I created.
That's really strange that the filter works on the list but not on the Flow.
Maybe try remove all the info from that action on the flow and re-enter it and then try again?
Do you want to send out an email when Reminder date is equal to Today’s date?
Please take the following flow for a reference.
It is triggered by Button for testing, please adjust it to Recurrence against your scenario.
Then get items from the list. In the list, I have a date and time column EndDate, I will use a Condition to return items that EndDate equals to Today’s date with the following code:
Under if yes branch, send an email.
Image for your reference.
Another way to achieve this is to use Filter query in Get items to just return items that EndDate equals to Today’s date. It could be configured likes below.
Note: Please surround the function utcnow with a single quote in the Filter query field.
Image for your reference:
More details about WDL function and Odata filter query, see bellows:
Thank you, Mabel! I tried your first suggestion and got this message:
The template validation failed: 'The inputs of template action 'Condition' at line '1 and column '1827' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Condition' to be referenced by 'repeatItems' or 'items' functions.'.
It seems that there is something wrong with the function in the Condition.
How is the function configured on your side?
Please share more details on the flow.
Have you added the Condition under an Apply to each?
Please also make sure you do have the date and time column with the name “EndDate” exists in the list. What’s the exact column name on your side?
Please share a full screenshot of your flow, I will help figure out the issue.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Many congratulations to the Season 1 2021 Flownaut Crew!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
Check out the community blog page where you can find valuable learning material from community and product team members!