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 "?



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 '17 at 3:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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