You need to sign in to do that
Don't have an account?
miha198206
Error when escape '&' symbol in SOSL FIND statement
I have a code to find 'Why & not' keyword:
String query = 'FIND \'Why \\& not\' IN ALL FIELDS RETURNING Contact LIMIT 200'; List<sObject> sObj = Search.query(query)[0];
I escaped '&' symbol but when I run this code I get the error:
line 1:10 mismatched character '\' expecting '''
How can I solve it?
Thanks.
Let me know if this gives you any error.
Thanks
Ankit Arora
Blog | Facebook | Blog Page