Topic by Stevie Mayhew
Hi there,
I'm trying to run a query which is trying to find a contact by searching their last names. Last names with apostrophes in them are failing, even when the apostrophes are escaped.
An example query which is being sent and failing:
SELECT C.CustomFields.c.*, C.* FROM Contact C WHERE C.Name.Last LIKE 'Apos\'trophe'
The error is:
near "trophe": syntax error
Is this because I am using the wrong escape character - it says on the ROQL page (http://community.rightnow.com/developer/fileexchange/Connect_Web_Services_for_SOAP_May_2011/Content/RightNow%20Object%20Query%20Language/RightNow%20Object%20Query%20Language.htm) that "You should not use the backslash character in a search (except to escape a character), as it is reserved." which is what I am doing.
Thanks for your help,
Stevie