Forum Discussion
BenMercer
Nov 15, 2023Copper Contributor
ODATA Filter Query not valid when it should be
Hi, I’m deeply confused with Power Automate Get Items ODATA Filter Queries. They are completely illogical. With one choice column called “Status”, it works absolutely fine. With another choice co...
BenMercer
Copper Contributor
Just tried it. Still doesn’t work even without the spaces unfortunately.
Damien_Rosario
Nov 17, 2023Silver Contributor
Hi BenMercer
If SwayStatus eq 'To Do' didn't work, you can also try Sway_x0020_Status eq 'To Do'.
Cheers and best wishes
Damien
- Rahul-BaruaNov 17, 2023Copper ContributorTo check the column name you could use the below URL to find the internal name of the column
_api/web/lists/getbytitle('List Name')/fields - BenMercerNov 17, 2023Copper Contributor
Damien_Rosario this didn’t work either. Same bad request error. Like I said, it clearly knows the column exists, otherwise it throws back a different error when it can’t find the column. The bad request error seems to be it saying it’s found the column, but is complaining that the syntax is wrong, when it isn’t.
- Damien_RosarioNov 17, 2023Silver Contributor
Strange issue BenMercer .
Only other thing I can think of is to check that your value 'To Do' doesn't contain an extra space after 'Do'. That would break your filter query if it does have it.
Otherwise, for now, I can't think of anything else to suggest trying.
Cheers
Damien
- BenMercerNov 17, 2023Copper ContributorYeh, I tried it with another choice option in the column ‘Complete’, and it Bad Requested that aswell. I’m giving up on this Filter Query and will either use a condition control, or just do this task manually if it’s not that intensive.