Hi there, I'm fairly new to Power Automate. I've created a PowerApp where a user can check out equipment items. When the user checks out an item, there is an option to state when they plan to return that item called "Planned date return"
In Power Automate how can I set up an email for 7 days past the users "planned date return" if they did not return it?
Where are you storing your data?
See my example below. Note the single quotes in my Filter Query. Also, you need to use a column's internal name in your filter query which is probably planneddatereturn but it may not be. If you have an error, go to the SharePoint list settings and click on the column name. The internal name will be at the end of the URL following Filed=
Thank you! I just gave that a try for notification of 1 day. So hopefully it triggers and sends the email out. I will report back on the status if it does or not
When you say that it dies not work, can you explain further? Does it generate an error?
Please post screen shots of your Flow along with shots of any error that is generated.
When I say it does not work it does not send an email of a late return when I manually run the flow.
It gives back a "flow failed" error.
Here are screen shots of the error when I manually run it
Here is how I have my flow set up.
1.) Are you sure that in your Get Items Fitler Query you did provide following expression:
2.) In your Filter Query of the Get Items there is the mistake it should be DatePlannedReturn eq 'addDays(utcNow(),-7,'yyyy-MM-dd')'
3.) Last but not least the Loop in the Loop Apply to Each / Apply to Each 2 looks bizzare...
Try to remove this steps add one more time action to Send Email and then take dynamic content from Get items - it will add single loop and for each item it will deliver the email.
If you want to group that and send as one mail you should use Select + Create HTML table
Hope this will help,
If I have answered your question, please for other community members mark post as Solved.
I had to change from "-7" to "-5" . I initially wanted to send an email to the item borrower 7 days after they have not returned an item but I decided to go with 5. It appears that it is subtracting 5 days from today. I would need it to send an email 5 days after the planned date return
But I am still getting this error now when I test the flow
This is how I have the flow currently after trying what you suggested
The error indicates an issue with your filter query. First, you must add single quotes before and after the expression - see my example above. In addition, you need to add a space after DatePlannedReturn. Finally, you don't have an operator such as eq for equals (see my example above).
As per your screenshot:
Your Filter Query is still incorrect... Make sure that you have the valid expressio which should be then:
DatePlannedReturn eq 'addDays(utcNow(),-7,'yyyy-MM-dd')'
Note that you should have SPACE after DatePlannedReturn
then expressions for the date
Everything is important for Filter Query
@jonathan_chan20 glad your are one step closer to the resolution, your Email is not delivered becasue of the incorrect configuration at this place:
What you need to do:
1.) Remove Both Apply to Each loops
2.) Add send email Action
3.) Add to the Subject or Body your properties from get items (like ItemBorrowed DatePlannedReturn)
4.) That will add automatically loop for each ITEM from your Get items step
REMEBER that if you have 100 items it will deliver 100 emails to BorrowEmail
If this is not what you wanted to have one email with the update about all items let me know.
Yes that is how I have it but it is still not sending out an email. I'm using the "test" command and running the flow "manually". It says the flow ran successfully but I do not get an email. Here is how it is set up
For the testing change the TO to your email and add BorrowEmail to the body of email content - you will see if the BrrowEmail is not empty 🙂
You can also attach the screenshot from the historical run 🙂
Good call on TO email sending it to me. I just changed it to my email for test, still getting nothing
Here is the historical runs
Show me the screenshot not with the time but with the execution, open the loop to display how many times it executed and what was in it 🙂
So many events happening this month - don't miss out!
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.