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 / expiry date should equ...
Power Automate
Answered

expiry date should equal: minus 30 days formula (todaysdate - 30 days?

(0) ShareShare
ReportReport
Posted on by

Good day,

 

i have a List with and Expiry Date Column and i need a Notification email to be sent 30 days prior the Expiry date.

 

What should the formula look like? @equals(substring(item()?['Expiry Date'], 0, 10), utcnow('yyyy-MM-dd'))

 

Where should the minus 30 days be added?

 

many thanks

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous,

     

    The formula that you provide above could not be able to achieve your needs. 

    Please take a try with the following formula:

     

    @equals(formatDateTime(utcNow(), 'MM/dd/yyyy'), formatDateTime(addDays(item()?['Expiry_x0020_Date'], -30), 'MM/dd/yyyy'))

     

     

    More details about the usage of formatDateTime() function and addDays() function, please read the article as below:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Best regards,

    Kris

  • 421 Profile Picture
    4 on at

    Hello @v-xida-msft ,

    May you please help me with something similar? I'm new to flow and I have a SP list with column for date 'Due Date'. I want to send the notification with flow to the person in charge 3 days before the 'Due Date'. I could get the recipients e-mails from other column in the list - 'AssignedTo', no problem with that. I begin the flow with recurrence(I will set it to run one time a day), than I want to use the 'Filter query' in Get items, but I'm not exactly sure how could I achieve the right filter with adddays.

     

    I will be very grateful, if you could help me with that. 

     

    Kind Regards

     

  • 421 Profile Picture
    4 on at

    Hello @v-xida-msft ,

     

    I managed to do the job, please don't take my questions in consideration. 

     

    Kind Regards

    Boyan

  • Share-and-Flow Profile Picture
    32 on at

    hi @421 

    I am here looking for a similar solution.

    My reminders will be sent 60,30 and 15 days before expiry date.

    How did you do it?

     

    Thanks

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard