I am using the SharePoint rest API, I need to quote a string in the filter query.
This is my query:

?$filter=MyField eq 'aaa'aaa'

How can I search the string " aaa'aaa "?


1 Answer 1


Use two quotes. That is for 'aaa'aaa' use 'aaa''aaa'

  • This also works in other areas of the REST API, such as checking in a file with single quotes in the comment. Mar 22, 2017 at 3:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.