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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to write my Filter...
Power Automate
Answered

How to write my Filter Query in GetItems and Update item??

(1) ShareShare
ReportReport
Posted on by 517
Hi All,
 
I want to change the status of all items to inactive as soon as the last date is due in SharePoint.
 
(e.g. Today Date : 10/23/2024)
How can I achieve this?
 
dKayt
Categories:
  • Verified answer
    trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at
    HI,
     
    Please try
     
    Date eq 'formatDateTime(utcNow(), 'yyyy-MM-dd')' 
     
    where the formatDateTime is an expression inside apostrophes, shown above.
     
    From here, you can have a flow that runs once a day on a schedule and checks or even have a flow that runs when an item is updated and checks for changes in the Date column.
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
  • dkayt Profile Picture
    517 on at
    Hi trice602,
    Your answer is right but I forgot that I need to know how to use the Update item (title updated) for updating the column Status.
    Do you have any ideas?
    Best Regards, dKayt
  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at
    Hi,
     
    Perfect!  Glad this worked for you. Please mark this one as a verified answer to help others in the community find it.  Then create a new post for the next question please - lots of people online this morning, you will get a good answer.  Tom
  • Meekou Profile Picture
    200 Moderator on at
    Do you mean you want to use Power Automate to query the SharePoint items by Date is before today, and then update all the rows which date is before today to inactive status?
     
    Is the Status column string type or dropdown option type?
     
    Regards,
    Meekou
  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at
    Hey there!
     
    I am following up on this post how to write my filter query in getitems and update item?? in this category general discussion from 10/23/2024.  I know the post is a little older, but it is a common question here so wanted to take a moment and follow-up. I see there have been 4 replies and 1 likes and asking if your question has been answered.  If so, please help the community out by completing one or more of the following actions!  Thanks in advance!
     
    Easy as 1-2-3 ‼️💯⭐😎🆒🙏
     
    1) Mark a reply as a verified answer - this is essential, and it helps others with the same general question find this thread. ✅
    2) You can also mark one of more replies as a verified answer.  Please take a moment and give the author credit for volunteering their time. ✌️
    3) Like one or more replies.  Kudos always greatly appreciated! 👍
     
    Pro tip:  if you found your own solution or workaround, feel free to add a reply to your own post and mark it as the solution too!  The goal is to get this thread marked with a verified answer by anyone that finds one or more replies helpful!
     
    Again, thanks in advance for reading and responding, always glad to help!  Tom 💯💯💯💯💯
  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at
    If I can help with anything else please let me know or tag me in a future post, I enjoy reading and answering questions.  Always glad to help!  Tom 💯💯💯💯💯

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 275 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 178 Super User 2026 Season 2

Last 30 days Overall leaderboard