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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Return list based on expiry date

(0) ShareShare
ReportReport
Posted on by 18

Good afternoon,

Ive built a flow that runs on a schedule and should return an email list based on expiry dates. 
So far, the flow returns all values within the table and doesn’t filter for dates either expired or expiring in the next 30 days…

Steps in the flow:

Recurrence

List rows present in a table

Filter array 

create HTML table

Send an email

 

How do I get the flow to filter only dates that have either passed or due to expire in the next 30 days and only return those values in an email?

 

Many thanks. 

I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

     

    You Can Apply Filter on the list.

    Amit_Sharma_0-1671717510527.png

    Amit_Sharma_1-1671717552224.png

     

    addDays(utcNow(),-30)

     


    -------------------------------------------------------------------------
    If I have answered your question, please mark post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

    Same For Excel Table

    Amit_Sharma_0-1671717797011.png

     

  • MilesG Profile Picture
    18 on at
    Re: Return list based on expiry date

    Hi @Amit_Sharma, thanks for taking the time to respond, unfortunately though I receive an error if I run the flow using the Greater than or equal to operator, if I use equals then apply a filter array after I still get all the items returned in the table. 

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

    could you Please show me error and show me flow where you are doing compression.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

    The greater than or equal to Currently not supported by List row present in table Action it only support ne,eq,contain

    so, you can use Filter Array Action for achieve goal.

    Amit_Sharma_0-1671735944068.png

     

    addDays(utcNow(),-30)

     

    Best Regards,

  • MilesG Profile Picture
    18 on at
    Re: Return list based on expiry date

    Hi @Amit_Sharma 

    I must be doing something wrong as I still do not receive the correct data. The output still does not filter the dates that are more than 30 days away. 

  • grantjenkins Profile Picture
    11,059 Moderator on at
    Re: Return list based on expiry date

    In your condition for the Filter array, you'll need to format the date from Excel and the data you added days to.

     

    formatDateTime(item()?['YOUR_EXCEL_DATE_FIELD'], 'yyyy-MM-dd')
    
    formatDateTime(addDays(utcNow(), -30), 'yyyy-MM-dd')

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

    Please Select Date Time Format Field ISO 8601 in List rows present in a table Action then it's work perfectly.

    Amit_Sharma_0-1671776494018.png

     

    Best Regards,

     

  • MilesG Profile Picture
    18 on at
    Re: Return list based on expiry date

    @Amit_Sharma @grantjenkins 

    Thanks for your time, but I’m clearly doing something wrong…

    I’ve rebuilt the flow with your recommendations yet still I don’t get the required result. 

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at
    Re: Return list based on expiry date

    Hi @MilesG 

    Could please show me your flow.

    Also try to show me sample output which return by Get row present in table action.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard