cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Email not sending when review date comes

Hi,

 

I seem to be having some trouble with a flow that doesn't seem to be completing the last step but it saying the flow was successful:

 

Screen Shot 2020-05-11 at 1.59.13 pm.png

 

Below are the expressions I have used and want it to fire 60 days before the document is due for review as well as on the review date

 

Screen Shot 2020-05-11 at 2.00.03 pm.png

 

Screen Shot 2020-05-11 at 2.00.40 pm.pngScreen Shot 2020-05-11 at 2.01.05 pm.png

 

Is someone able to help with why the email isn't triggering? The email is being sent to a property that also has has column in the same Sharepoint Document Library.

 

Am I missing another expression?

 

Cheers

4 REPLIES 4
Highlighted
Super User
Super User

Re: Email not sending when review date comes

@Callum91 

If you are sure that there is an output from the 'Get File Properties' action, then the problem is in the 'To' column, the email action will fail only if there is no recipient to send it to. Can you please initialize a variable and capture the 'To' field inside 'Apply to each 2' action for testing?

 

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Highlighted
Community Support
Community Support

Re: Email not sending when review date comes

Hi @Callum91,

 

I can see in your Flow run history, there is no item return from Get items, it is caused by the Filter query not reasonable.

A date couldn't satisfy two timestamps at the same time, the Review date couldn't equal to UTC now and equals to 60 days ago at the same time.

I guess you want to send the review notification twice: today, and after 60 days, right?

If so, please change the "and" to "or":

Annotation 2020-05-11 144058.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Super User
Super User

Re: Email not sending when review date comes

@Callum91 

I think the condition where 'utcnow()' is not supported, the format has to be like 'yyyy-MM-dd', can you just use addDays with 0 for the first condition too and then you can check.

 

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Highlighted
Frequent Visitor

Re: Email not sending when review date comes

Thank you for this. are you able to provide an example/pic on the best way to do this?

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (3,856)