cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Odata filter Column value = xx

Hi there guys, 

i have a SharePoint list that is linked to a flow. The flow should "Get Items", however, I only want it to get the items where the column "Inkl." is equal to "yes", so that the statement would be If('Inkl' = 'j', true), can anyone help with the Odata syntax that would be required to achieve this simple thing. 

The column Inkl. is a text column 🙂 

Thanks in advance
- Tobi 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Odata filter Column value = xx

@TCH 

Flow uses the internal name of a SharePoint column in OData filters.  The columns internal name is frequently not the same as the name you see - the display name.  An easy way to see the internal name is to look at the output of a Get items action after a run.  You need to refer to a column in the same manner as you see it referred to in the Get items output.  The internal column name is created when the column is created an will never change.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Odata filter Column value = xx

@TCH 

The OData filter will probably look like this assuming that you are looking for the column to equal yes and it is a text column:

Inkl eq 'yes'

Please note the single quotes around the word yes.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Highlighted
Community Support
Community Support

Re: Odata filter Column value = xx

Hi @TCH ,

 

Please make should the column name is Inkl when it is created, and make sure the column shouldn't be a renamed column.

As @ScottShearer  said, the expression in the Odata filter should as below:1.png

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper IV
Helper IV

Re: Odata filter Column value = xx

@v-alzhan-msft & @ScottShearer 

That is what I thought it would look like, but no matter what I do i will not regocnise the column, it keeps giving me the error, BadRequest, saying that the column does not exist?? Any of you tried this before, and have a possible solution? 

Highlighted
Helper IV
Helper IV

Re: Odata filter Column value = xx

@v-alzhan-msft @ScottShearer  think I found the reason, flow detecs the name as Inkl_x002e_ for some reason, so now it works, do you know if I can expect it to keep reading the name for the column as Inkl_x002e_ or if this will just change at some point meaning that I would have to change it again? 

Thanks 🙂 

 

Highlighted
Super User III
Super User III

Re: Odata filter Column value = xx

@TCH 

Flow uses the internal name of a SharePoint column in OData filters.  The columns internal name is frequently not the same as the name you see - the display name.  An easy way to see the internal name is to look at the output of a Get items action after a run.  You need to refer to a column in the same manner as you see it referred to in the Get items output.  The internal column name is created when the column is created an will never change.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (6,789)