Search code examples
odata

querying fields with name containing whitespace using OData


I have to make a $filter query on a field that's name contains whitespace. Eg, $filter=Ticket No eg 'abc_123'

I'm starting to think its not possible. Can someone help me with this please?

Thanks.


Solution

  • Thought I'd share this, I was trying to query rest services through my SharePoint hosted SharePoint 2013 app and well I found the solution. All you need to do is replace the spaces in the field name by _x0020_