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

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
    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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard