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 / SharePoint Get Items f...
Power Automate
Answered

SharePoint Get Items filter not working with Choice field

(0) ShareShare
ReportReport
Posted on by 85

Hello,

 

I have a really simple get items action that is trying to filter based on a choice field.  However I am always getting an error. Is there a different syntax?

 

BSA_x0020_Contract_x0020_Number/Value eq '@{triggerOutputs()?['body/BSA_x0020_Contract_x0020_Number/Value']}'

 

 

1.png

 

2.png

Categories:
I have the same question (0)
  • bradleyhorton Profile Picture
    187 on at

    Hi @Larry_Casey I might be wrong here, but I don't think you need the /value. I've certainly never used it when filtering on choice columns from SharePoint. I think it's looking for a column heading specifically.

  • lcasey233 Profile Picture
    85 on at

    Hello,

     

    But if I don't include the value, then nothing at all gets returned. Even though I have 3 records with that exact number.

     

    1.png

     

    2.png

  • bradleyhorton Profile Picture
    187 on at

    @Larry_Casey  ahh okay. I just tried to re-create and it returned the 3 items for me. Does it have the same issue if you type the Contract number into the filter than than use dynamic content?

    bradleyhorton_0-1605558958742.png

    bradleyhorton_1-1605559012660.png

     

     

  • lcasey233 Profile Picture
    85 on at

    I just found out that Power Automate Odata Filters do not support SharePoint Choice Fields so I cant get this to work.  The Contract Numbers are all in lookup fields which wont work with an Odata filter in Get Items.

  • lcasey233 Profile Picture
    85 on at

    The Contract Numbers should be in a Lookup Field. Your List has them as just a text field.

  • Verified answer
    bradleyhorton Profile Picture
    187 on at

    @Larry_Casey  was just having a read as was interested and this (message 7) seems to suggest you can ODATA filter on Lookup columns, you just need to point at the lookup column too. It might not help, but thought it was worth mentioning.

    https://powerusers.microsoft.com/t5/Building-Flows/ODATA-Filter-queries-on-LookUp-columns-from-a-SP-List/td-p/84882 

  • lcasey233 Profile Picture
    85 on at

    Hello I did see that earlier and couldnt get it to work, but it is working now using:

    BSA_x0020_Contract_x0020_Number/Title

     

    I had to use the actual field name + add the backslash and enter the actual field name that the lookup column uses.

     

    I am going to accept your post as a solution as you did point out the exact issue I was having. Thanks So Much!!!

  • bradleyhorton Profile Picture
    187 on at

    Glad you got it sorted, @Larry_Casey 

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard