added in double quotes for single in query

This commit is contained in:
2024-03-07 09:45:50 +00:00
parent 25d611b3e4
commit f434fcf4f8
10 changed files with 16 additions and 5 deletions
@@ -76,6 +76,8 @@ export default async function ApiProxy(req, res) {
var fieldSort = req.query.fieldSort;
var showNumberOfRecords = req.query.showNumberOfRecords;
searchString = searchString.replace(/\'/g, "''");
var queryUrl =
"incidents?$select=description,numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value,pinswg_lpareference&$expand=primarycontactid($select=fullname)&$filter=(contains(title, '" +
searchString +