cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Willerz7071
Level: Powered On

Send email when date arrives

I am a small business owner with little flow experience. Mostly GUI guys so please go easy on me. Smiley Happy

After multiple tests, I can't seem to get this flow to send me an email.

Scenario: I want an email to be sent when an employees performance review date is due in 1 day. The flow runs successfully but no email is sent? 

The strange thing is I have a similar flow running for birthdays and it works, but I can't get the performance review one to work? 

 

I also have tried using this too that I found in another thread. 

@equals(formatDateTime(items('Apply_to_each')?['Next_x0020_Performance_x0020_Rev'], 'MM-dd'), formatDateTime(utcNow(), 'MM-dd'))

 

 

Capture.PNG

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Send email when date arrives

@Willerz7071:

 

How many items do you have in your list - I can't tell from the screen shot if there are more than the four that you have identified.

 

I ask because, by default, Get Items returns only 100 items.  If this is your issue, here is a link to a blog post that details how to change the default.

 

If this addresses your issue, please mark your post as Solved.

 

Scott

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

Scott
5 REPLIES 5
Super User
Super User

Re: Send email when date arrives

@Willerz7071:

 

Can you post a screen shot of one of the Flow runs?  That way we can see what happened when the Flow ran which will help find your issue.

 

Scott

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

Scott
Community Support Team
Community Support Team

Re: Send email when date arrives

Hi @Willerz7071,

 

Please modify your flow trigger to "Recurrence" if you want to an email to be sent when an employees performance review date is due in 1 day.

 

The screenshot of the flow should as below:

Capture.PNG

 

The expression in the Condition as below:

@not(empty(items('Apply_to_each')?['Next_x0020_Performance_x0020_Rev']))

 

The expression in the Condition 2 as below:

@equals(formatDateTime(items('Apply_to_each')?['Next_x0020_Performance_x0020_Rev'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), 1), 'yyyy-MM-dd'))

The flow would run successfully as below:

Capture.PNG

 

Best regards,

Alice

Willerz7071
Level: Powered On

Re: Send email when date arrives

 

 

 So there seems to be a bug? It is only emailing me for two employees, but I have four set for the same date?

I don't get emails for Christine or Melody?

Capture7.PNGCapture4.PNG

 

 

 

 

 

 

 

 

Super User
Super User

Re: Send email when date arrives

@Willerz7071:

 

How many items do you have in your list - I can't tell from the screen shot if there are more than the four that you have identified.

 

I ask because, by default, Get Items returns only 100 items.  If this is your issue, here is a link to a blog post that details how to change the default.

 

If this addresses your issue, please mark your post as Solved.

 

Scott

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

Scott
Highlighted
Willerz7071
Level: Powered On

Re: Send email when date arrives

That was it, I have over 230 past employees on the list. I changed the amount as you suggested and now it works. I wonder does the Get not go alphabetical or does it use its creation date or id number to run through the list? Any ideas. Just curious?

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: 518 members 5,656 guests
Please welcome our newest community members: