Skip to main content
Community site session details

Community site session details

Session Id : RhIVzuM8N9qUpbS2OGuJZW
Power Automate - Building Flows
Unanswered

SharePoint Get Items - ODATA Filter Help

Like (0) ShareShare
ReportReport
Posted on 5 Apr 2024 13:13:09 by 78

Hi all, 

 

I'm having trouble using the SharePoint Get Items action when filtering by a Lookup column.  I'm not getting any results when I know there should be.  The output value of the Get Items always returns empty. 

 

Here's the flow:

OData_Filter_Query1.png

 

Here is the list. If I pass in P2404002 I expect to see four items returned. 

 

OData_Filter_Query2.png

 

This is the configuration of the Project No Lookup column.

 

OData_Filter_Query3.png

 

Thanks,

-Greg

  • greddin1 Profile Picture
    78 on 05 Apr 2024 at 15:25:50
    Re: SharePoint Get Items - ODATA Filter Help

    I managed to get it working from reading this post here: https://powerusers.microsoft.com/t5/Building-Flows/ODATA-Filter-queries-on-LookUp-columns-from-a-SP-List/td-p/84882

     

    My query needed to be Project_x0020_No/ProjectID eq ...  (where ProjectID is the internal name of the column from the parent list. 

     

    Thanks!

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 05 Apr 2024 at 14:08:08
    Re: SharePoint Get Items - ODATA Filter Help

    @greddin1 

    Just for fun, try hard coding a Project No in the OData filter and see what happens.

  • greddin1 Profile Picture
    78 on 05 Apr 2024 at 13:57:09
    Re: SharePoint Get Items - ODATA Filter Help

    No, just a single select. Here's the configuration of the field.

     

    OData_Filter_Query3.png

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 05 Apr 2024 at 13:54:45
    Re: SharePoint Get Items - ODATA Filter Help

    @greddin1 

    I just ran a test using internal_col_name/Title and it works for me.

    Make sure that the case of your input matches what is in the list.

    Is the lookup column a multi-select?

     

  • greddin1 Profile Picture
    78 on 05 Apr 2024 at 13:43:44
    Re: SharePoint Get Items - ODATA Filter Help

    I've also tried Project_x0020_No/Id as well.  But still don't get the results.

  • greddin1 Profile Picture
    78 on 05 Apr 2024 at 13:40:36
    Re: SharePoint Get Items - ODATA Filter Help

    Thanks Scott. I tried that but still no results.

     

    OData_Filter_Query4.png

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 05 Apr 2024 at 13:36:04
    Re: SharePoint Get Items - ODATA Filter Help

    @greddin1 

    Try this - use Project_x0020_No/Title instead of Project_x0020_No

    Please let me know if this wors for you.

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started
Loading complete