function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
learnSFlearnSF 

how to remove apostrophe character inside find query

Hi,
 
I have compnay name with apostrophy (') sign.
 
I want to find similar name inside find query but company name with this sign muformed query.
 
How I can escape this sign while writing query and still find exact matching name with ' sign.
 
Code:
var sstr =  "find {" + who + "*} in NAME FIELDS RETURNING "+table+"("+ fields+ ")"

where who have aposhrophy sign.
 
-thanks in advance 
IdreesIdrees
hi i have not used as you write,
but as i understand - visit the following link
 
 
if you have same problem than it helps you.
 
Thanks,
Muhammad Idrees.
 
learnSFlearnSF
This solution worked for me as well.
 
Thanks a lot.