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 / ODATA filter by choice...
Power Automate
Answered

ODATA filter by choice field

(0) ShareShare
ReportReport
Posted on by 168

I have a SharePoint Get Items step in a flow which grabs the data successfully with an ODATA filter of: Audit/Id eq 15

AngusWalker_2-1713399680883.png

and returns the following data: (only relevant data shown)

 

 {
 "@odata.etag": "\"1\"",
 "ItemInternalId": "98",
 "ID": 98,
 "Title": "fsdfsdf",
 "Audit": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 15,
 "Value": "Angus Test 1"
 },
 "Audit#Id": 15,
 "Question": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 31,
 "Value": "4.2 (If applicable), did the Subordinate only undertake works delegated to them?"
 },
 "Question#Id": 31,
 "Answer": {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 "Id": 2,
 "Value": "N/A"
 },
 "Answer#Id": 2,
 "Modified": "2024-04-10T16:49:57Z",
 "Created": "2024-04-10T16:49:57Z",

 

However if I set my ODATA filter to: Answer/Id eq 2
I get:

AngusWalker_0-1713399367071.png

Output error:

AngusWalker_1-1713399480532.png

The raw output for both these fields is identical in that top result, though Audit/Id refers to a lookup and Answer/Id refers to a choice field.
Can anyone identify why the second filter doesn't work?

 

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

    Hi @AngusWalker ,

    Please put Answer eq 'N/A' in Filter Query.

    Because the lookup column is filtered by Id, and the select column is filtered by value.

     

    Best Regards,

    Sunshine Gu

  • AngusWalker Profile Picture
    168 on at

    Thanks @v-yetonggu-msft 

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