Forum Discussion

BenMercer's avatar
BenMercer
Copper Contributor
Nov 15, 2023

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 column called “Sway Status” on the same list, it errors every single valid Filter Query I give it.

> The syntax is correct, it is identical syntax to the one that works.

> It recognises the column exists, otherwise it prints a different error along the lines of “The column may have been removed” when it can’t find the column

> I have tried quote escaping. Doesn’t work

The experimental feature to simplify filter queries isn’t there anymore, so I’m stuck with these queries that seem to only work if you’re lucky and the winds blowing in the right direction. Please help.

  • Kelly_Edinger's avatar
    Kelly_Edinger
    Bronze Contributor
    Have you tried using SwayStatus? When you go into List Settings and then click the column, the URL will show you the true column name at the end of the URL. It won't have any spaces.
    • BenMercer's avatar
      BenMercer
      Copper Contributor
      Just tried it. Still doesn’t work even without the spaces unfortunately.
      • Damien_Rosario's avatar
        Damien_Rosario
        Silver 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

Resources