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 / Reoccurance reminder b...
Power Automate
Suggested Answer

Reoccurance reminder based of expiry date in sharepoint list

(0) ShareShare
ReportReport
Posted on by 2
I have created a reoccurance power automate workflow that will send an email reminder based of a sharepoint list expiry date column for 60 days, 30 days and 15 days before it expires to multiple people in the sharepoint list.
 
The issue is the expression result always ends up as false, so itnever sends the reminder email even though the outputs match the condition of 30 and 60 days in my testing see attached.
 


 
Categories:
I have the same question (0)
  • Suggested answer
    Tomac Profile Picture
    3,953 Moderator on at
    It looks like the results of your compose action DaysUntilExpiry is returning extra line breaks, which will cause this issue.
     
    You can resolve this one of two ways:
    1.  Modify the expression in your Compose action to remove the extra characters and convert the string to a number
    2.  Wrap the Outputs dynamic content in your Condition in functions to remove the extra characters and convert the string to a number
    Either place you choose to put the wrapper, it will look like this:
    int(replace(replace(YOUR VALUE HERE,'\',''),'n',''))
     
  • David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    Does your Get items action use a Filter Query to reduce the number of items it retrieves? If not, do you expect to have more than 100 items in the list? And if so, could it eventually grow beyond 5,000 items?

    If your list has more than 100 items, be aware that the Get items action only retrieves the first 100 by default. To get more, you’ll need to enable pagination and set a suitable threshold for the number of items to return.

    If your list might exceed 5,000 items, performance will degrade significantly without a filter query. In that case, it’s important to index key columns—especially the expiry date field—so you can use a Filter Query to retrieve only the relevant items. Once your list exceeds 5,000 items, any field used in a filter must be indexed for the query to work properly.
  • CC-15071724-0 Profile Picture
    2 on at
    Thanks both for you assistance so far, I really do appreciate it.
     
    @David_MA The test list only contains two items. I dont expect the list to be any greate than 150 - 200 items over time. I do have a query filter which is
     
    ExpiryDate ge '@{utcNow()}' and ExpiryDate le '@{addDays(utcNow(), 60)}'

    shouLd I keep this?
     
    @Tomac
     
    My expression in the DaysUntilExpiry is currently the folloowing, what do you recommend I alter it to?
     
    @{div(sub(ticks(items('Apply_to_each')?['ExpiryDate']),ticks(utcNow())),864000000000)}
     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard