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 / Unable to get auto Exp...
Power Automate
Unanswered

Unable to get auto Expiry Alerts

(0) ShareShare
ReportReport
Posted on by 2
Hi Everyone,
 
I made a power automate flow which provides renewal or expiry alerts based on expiry date. I am able to get alerts on daily basis, but I want alerts 30 days before of expiry date.
I am unable to get alerts before 30 days of expiry of specific items. Instead, I am getting alerts of all items.
 
Data Operation (Today)-
convertFromUtc(utcNow(),'India Standard Time','yyyy-MM-dd')
 
Data Operation (DateDifference)-
if(equals(outputs('Today'),outputs('Due')),0,int(split(dateDifference(outputs('Due'),outputs('Today')),'.')[0]))
 
Please help me where am I making mistake.
Screenshot 2026-01-07 121605.png
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,335 Most Valuable Professional on at
     
    Can you share what you are using in your Due action (the first Compose)? Can you also share the setup of your condition action?
     
    When I use your logic/expressions with some example dates it seems to work fine in my first test. For an expiry date of the 23th of Jan I am getting -16 back as a date difference with today (7th of Jan), which is accurate.
     



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • PP-07010646-0 Profile Picture
    2 on at
    Hi Thanks for the response.
     
    The problem is that I am not able to get the alerts before 30 days of expiry.
     
    I made flow for getting expiry alerts before 30 days of expiry. But what I am getting is- Suppose I have 100 line items. And I am getting 100 alerts daily while their expiry dates are different. This is the problem. Suppose out of 100, 5 are getting expire before 30 days, I will not get alerts for 5. I will get alerts for all the 100 line items.
     
    Can you please help me in getting only expired (before 30 days) line-item details from excel file over email using power automate.
  • MS.Ragavendar Profile Picture
    5,325 Super User 2025 Season 2 on at
     
    The flow which you developed compares each item’s expiry date inside Apply to each and Send an email action is also inside the loop based on the condition that is not needed.
     
    In the List Rows Present in the table action there is parameter Filter Query (OData) , i assume you might have the column for the expiry in the excel.
     
    ExpiryDate ge formatDateTime(utcNow(),'yyyy-MM-dd') and ExpiryDate le formatDateTime(addDays(utcNow(),30),'yyyy-MM-dd')  this will filter only specific records which falls under due date. 
     
    Create a html table for each list row items.
     
    Send email -> Use the Html Table. (1 eMail with all details you will have).
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
  • Expiscornovus Profile Picture
    33,335 Most Valuable Professional on at
     
    Yes, it was clear what problem you were experiencing (it was sending e-mails for every item and not just a few).
     
    I just wanted to see your setup, so I could troubleshoot why it was sending an email for every item. That's why I asked for a screenshot of your Due (Compose) and Condition actions :)
     
    Additionally, like already suggested by @MS.Ragavendar, you could simplify your setup by using the filter query field instead.


     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel

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

#2
David_MA Profile Picture

David_MA 169 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard