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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send a reminder email ...
Power Automate
Unanswered

Send a reminder email 3 days before due date

(0) ShareShare
ReportReport
Posted on by 13

Hi,

 

I have a sharepoint list with 2 columns among many other columns called 'Action Due Date' and 'Action Status'. Action Due Date has the date in the format of dd/mm/yyyy and Action Status has text either 'Open', 'Closed', Cancelled'.

 

I'm looking to set up an automated flow that checks everyday if the Action Status is 'Open' and the Action Due Date is within 3 days of today's date. If so, I wish to send an automated email to myself.

 

I've tried looking at some of the existing responses online but still seem to get stuck. Here are the issues I'm facing.

 

1. 'Get Items - Filter Query' Issue with format

 

filter query.png

2. Condition issue

 

condition issue.png

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @tissuebox882 ,

     

    When you say within 3 days, did you want the items which are upcoming up to 3 days or has past up to 3 days?

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

  • tissuebox882 Profile Picture
    13 on at

    Upcoming 3 days

  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @tissuebox882 ,

     

    Try the below:

     

    Based on this list, it should only return the first item.

     

    ericcheng_2-1633567393412.png

    Expression in Filter Array is below.  You may need to swap out the column name to yours marked in bold

     

    @div(sub(ticks(formatDateTime(item()?['ActionDueDate'], 'yyyy-MM-dd')), ticks(formatDateTime(utcNow(), 'yyyy-MM-dd'))), 864000000000)

     

     

    ericcheng_1-1633567377294.png

    ericcheng_3-1633567504966.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

  • tissuebox882 Profile Picture
    13 on at

    Hi, thanks for your response.

     

    I've input the same formula in the filter array, however I'm still getting emails even though I set the Action Due Date on 28th of October 2021.

     

    div(sub(ticks(formatDateTime(item()?['ActionDueDate'], 'yyyy-MM-dd')), ticks(formatDateTime(utcNow(), 'yyyy-MM-dd'))), 864000000000)

    thumbnail_image001.png

     

    Also, is there a way to get the date format into dd-mm-yyyy?

  • eric-cheng Profile Picture
    5,171 on at

    Hi @tissuebox882 ,

     

    Is your column also called ActionDueDate?  I think yours is called Action Status?   Please check the output of Get Items using a Compose action and update the part in red.

     

    div(sub(ticks(formatDateTime(item()?['ActionDueDate'], 'yyyy-MM-dd')), ticks(formatDateTime(utcNow(), 'yyyy-MM-dd'))), 864000000000)

     

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

  • tissuebox882 Profile Picture
    13 on at

    I have both Action Status and Action Due Date.

     

    In the Get items Filter Query I have "    Action Status eq 'Open'    "

     

    In the Filter Array I have div(sub(ticks(formatDateTime(item()?['ActionDueDate'], 'yyyy-MM-dd')), ticks(formatDateTime(utcNow(), 'yyyy-MM-dd'))), 864000000000)

  • eric-cheng Profile Picture
    5,171 on at

    Hi @tissuebox882 ,

     

    Can you output the Filter Array body to Create HTML table and post a screenshot of what it looks like

     

    ericcheng_0-1633658679313.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

  • tissuebox882 Profile Picture
    13 on at

    sorry, I don't understand what HTML table does. Mine is blank

    1.png

  • tissuebox882 Profile Picture
    13 on at

    all good, i got it working.

     

    Thanks a lot for your help

  • eric-cheng Profile Picture
    5,171 on at

    Hi @tissuebox882 ,

     

    Your flow should look like the following:

     

    The condition will use @length(body('Filter_array')) to check if an item exists.  It will only send an email if yes.

     

    ericcheng_0-1633664738851.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard