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 / Get Items Filter query...
Power Automate
Answered

Get Items Filter query by Item ID not returning value

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to use a Filter Query to return the ID of an item from a list using a variable. It works fine when I manualy type in the query as follows: 

 

Title eq 'Cory Ave ' 

 

But when I use a variable it fails. The variable is an item from a different list. Is the variable type within the query a potential problem? What else could be causing this?

 

 

Here is the flow with a variable in the query:

Query 2.png

Here is the flow with hardcoded query:

Query 4.png

 

This screenshot is from the successful run returning a single record from the filter:

Query 3.png

 

 

This screenshot is from the failed run with no output resulting from the filter.

Query.png

 

Thanks, Elan

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

    Hi @elansr ,

     

    In general, variable values can definitely be used as filter criteria in Filter Query.

    We often use Created to compare with utcNow(), so this is for sure.

    I am curious why the number of items traversed during the two tests is different, one is 13 and the other is 14, I wonder if this will be the reason for the test results.

    Please try reconfiguring Filter Query, noting the location of the space, the field name, and the parameter type.

    Please take a try again.

     

    Best Regards,

  • elansr Profile Picture
    4 on at

    Excuse my lack of experience, but can you explain or give an example of what you mean by "We often use Created to compare with utcNow(), so this is for sure."

     

    Thanks!

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Like:

     

    25.PNG

     

    Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard