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
@@ -43,6 +43,8 @@ export default async function ApiProxy(req, res) {
var searchString = req.query.searchString;
var token = await getToken();
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 +