web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an email 3 days b...
Power Automate
Answered

Send an email 3 days before a date in SharePoint

(0) ShareShare
ReportReport
Posted on by 212

I have a date ReturnDate which is a date column in SP.

I need a flow to send an email 3 days before this date.

I've tried:

Send Email 3 days before due date - Power Platform Community (microsoft.com)

 

ReturnDate eq '@{formatDateTime(addDays(utcNow(),7),'yyyy-MM-dd')}'

 

This doesn't work as it says syntax is incorrect.

 

and this:

 

 

 

ReturnDate eq addDays(utcNow(), 3)

 

 

this doesn't work as it says syntax is incorrect also.

 

Help please!?

 

 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @cardinalnight ,

     

    From a syntax perspective this looks fine, so can you please share the error details you receive?

     

    I did notice the name of your column is different from what you posted, so can you try:

    ReturnDate eq '@{formatDateTime(addDays(utcNow(),7),'yyyy-MM-dd')}'
  • Riku Profile Picture
    37 on at

    Are you trying to create a trigger based on a date in SP? Could you just run your automation daily to check if today is -3 days from the due date?

     

    You could build a condition that says something like:

     

    Riku61_0-1716465385050.png

     

    Where Outputs represents today in the correct format and the latter suggests due date -3 days to give the condition a true value: @{formatDateTime(addDays(variables('DueDate'),-3),'yyyy-MM-dd')}

  • cardinalnight Profile Picture
    212 on at

    Hi - this is the error for the first formula:

    cardinalnight_0-1716465541570.png

    and I get the same error for the second:

    cardinalnight_1-1716465665802.png

    ReturnDate eq formatDateTime(addDays(utcNow(),3),'yyyy-MM-dd')

     

  • cardinalnight Profile Picture
    212 on at

    And I get an error for this one as well:

    cardinalnight_2-1716465811454.png

     

  • Riku Profile Picture
    37 on at

    Paste this (or whatever you have) directly into the Inputs field of Compose and NOT the Expression. 

    @{formatDateTime(addDays(variables('DueDate'),-3),'yyyy-MM-dd')}

    Riku61_0-1716466206367.png

     

  • Riku Profile Picture
    37 on at

    So I would suggest Composing the date you need (Due date -3 days) and then using this. Would it work then? 🙂

     

    Riku61_1-1716466458401.png

     

  • cardinalnight Profile Picture
    212 on at

    It seems to be accepting this formula now - I've changed the formula, within the get items action to:
    ReturnDate eq 'formatDateTime(addDays(utcNow(),3),'yyyy-MM-dd')'
    but it's not sending an email. Is the addDays correct with the 3 in there? Should it be -3?

  • Verified answer
    Riku Profile Picture
    37 on at

    Assume that due date is today (2024-05-23) 

    addDays -3 results in: 2024-05-20

    addDays 3 results in: 2024-05-26

     

    Btw, If I helped you, click like and accept it as a solution :). Let me know if you need more help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard