Discussions

Ask a Question
Back to All

Urlencoded Search containing apostrophe (')

Im hoping there is a simple answer to this that someone has come accross or Cody can answer.

using URLencoded filtered search of contacts and am getting advanced filtering is not available

The contact i am trying to search for is called "Domino's - Joondalup"

My urlencoded search is

https://api.servicem8.com/api_1.0/company.json?$filter=name%20eq%20'Domino's - Joondalup'

I am receiving an error saying that advanced filtering is not available. Im assuming this is because it is parsing the apostrophe in domino's and treating it as a filter parameter.

has anyone else come accross this an is there a way that you can escape the apostrophe so it is parsed as par of the string and not the filter.