cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User
Super User

@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...

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

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.

@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...

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

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

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,854)