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 / Create due date remind...
Power Automate
Unanswered

Create due date reminder flow

(0) ShareShare
ReportReport
Posted on by 90

Hi everyone,

The flow I'm trying to create should be pretty simple but something is missing.

I have a Microsoft list with few rows - Title and Expired on.

Title is text type and Expired on is date and time type.

 

Each row contains a title of a software, and license expired date.

The idea is that once a day, the flow runs and checks whether the expired date is in the coming 40 days or less. 

If it is, send an email to remind me to renew license.

 

That's what I did - 

Talko_0-1687957388326.png

 

The expression I used in the Filter query is -

Expired on 'formatDateTime(addDays(utcNow(), 40), 'yyyy-MM-dd')'

 

I'm probably doing something wrong because I get an error when trying to test it.

Talko_1-1687957593644.png

 

Could you guys help me out?

Thanks!

 

 

Categories:
I have the same question (0)
  • annetoal Profile Picture
    1,934 Moderator on at

    In your ODATA filter use le not eq.

     

    If this helped, please mark it as a solution and give it a thumbs up.

    Anne

  • Verified answer
    Luis Arellano Profile Picture
    247 on at

    For column names with spaces you'll have to check how SharePoint created the name internally, I think it depends on the SP version so, sometimes you can use 

    Expired_X0020_On

    Newer version will just remove the space so, it will be like

    ExpiredOn

     

    To be sure about the column name, you can use 

    https://{YourSiteUrl}/_api/web/lists('{listId}')/items?$top=1

     

    and search for "Expired".

    Another way using power Automate is to use a "Get Item" action without any filter and see the output and again, search for "Expired".

     

     

    Regarding the logic, just like @annetoal said, if it is in the "coming 40 days or less" you need to use le instead of eq. You'll get emails every day for items that will expire in 40 days, but maybe that is just what you want. Also, assuming you should have all items updated with a new ExpiredOn date that could be fine, but if you have historic items, you'll need to add an additional condition to discard those. Otherwise you'll get emails for items that expired long ago and might not be relevant now.

     

    ExpiredOn ge 'formatDateTime(utcNow(), 'yyyy-MM-dd')' and ExpiredOn le 'formatDateTime(addDays(utcNow(), 40), 'yyyy-MM-dd')'

     

  • Talko Profile Picture
    90 on at

    Thanks for the reply guys!
    @LuisArellano I did try using the code you provided on filter query but I guess I messed it up somehow again.

    First of all, you were right, the internal sharepoint name is indeed ExpiredOn, but I tried using it and it said the column does not exist. 

    Therefore I changed it back to Expired On and used the code you provided, but I still get an error :S

    Talko_0-1688018771018.png

     

    Do you see what am I doing wrong again?

    Thanks

  • Talko Profile Picture
    90 on at

    Okay nevermind guys, my bad. I supposed to type Expiredon, and now its working, Thank you!

  • KJohnson478 Profile Picture
    2 on at

    I am having the same issue with my flow test failing... I am not sure what I am doing wrong. 

    KJohnson478_0-1718051673705.png

    KJohnson478_1-1718051700498.pngKJohnson478_2-1718051739806.png

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard