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 / Need to filter Get Ite...
Power Automate
Unanswered

Need to filter Get Items by using a Date Column that is a year ago, less 14 days

(0) ShareShare
ReportReport
Posted on by 2

I really need HELP, spent a lot of time on this and keep ending up deleting everything and starting again!

Basically, I have a SP List for Contractor Inductions, these inductions are only valid for 12 months so I need to notify the user in another column (Originator) with a list of Items due to expire in the next 2 weeks (14days). This will run twice a week.

The following columns I am using for the flow and/or causing problems:

SP List Columns

  • Date of Induction (Date Column)
  • Induction Expiry Date (Calculated - based on Date of Induction +1 year)
  • Status Column (Calculated - "Active" if Induction Expiry Date is more than 14 days away, "Expiring Soon" if Induction Expiry Date is within the next 14 days & "Inactive" if Induction Expiry Date has lapsed)
  • Originator (Name or Person Column)

Now to make my life super easy, it would be great to be able to filter the Get Items action in Automate with the above Status column, BUT as Power Automate does NOT like calculated fields this does not work.

 

I have tried so many different ways to get the outcome I desire but nothing works. Latest flow was as follows, this is without any filters.

vikkimiddleton2_0-1717600802831.pngvikkimiddleton2_1-1717600814053.png

 

Please Please Please help me!

Thanks

Vikki

 

 

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

    Hi @vikkimiddleton2 ,

    You can use the Filter array to filter records with Status equal to "Expiring Soon".

    Please check this test:

    My SharePoint List:

    vyetonggumsft_1-1717640047097.png

    My Flow Overall Preview:

    vyetonggumsft_0-1717640000652.png

    My Flow Configuration Parameters:

    vyetonggumsft_5-1717640594435.png

    item()?['Originator_x002e_/Email']
    union(body('Select'),body('Select'))

    vyetonggumsft_4-1717640574872.png

    item()?['Originator_x002e_/Email']
    item()?['Title']
    item()?['Status/Value']
    item()?['DateofInduction']
    item()?['Originator_x002e_/DisplayName']

    My Outlook Inbox:

    vyetonggumsft_6-1717640656260.png

    Best Regards,

    Sunshine Gu

  • vikkimiddleton2 Profile Picture
    2 on at

    Thank you so much for your quick response but still no joy - however this time the flow worked but I did not receive any email with the results. This is my list:

    vikkimiddleton2_0-1717686571584.png

    Status Column is calculated 

    Induction Expiry Date is also calculated

    The Notification column was renamed so the actual column name behind the scenes is Originator

     

    vikkimiddleton2_1-1717686727629.png

    So basically I need a list of all the expiring soon to be listed in an email to whoever is in the Notification column which is why I am using the unique email bit. 

    Hope that makes sense.

     

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard