Hi everyone! I am trying to figure out why my COQL request, being triggered by a webhook sent from CRM, is returning a bunch of extra \ in the query results and in the webhook JSON data. I have not been able to figure out why,
The same exact query run from CRM works perfectly, it is only in Books where the slashes are added. I don't think the issue is related to the COQL. I get the extra slashes in the webhook no matter what it seems, but I wasn't able to get around it with the query.
Would just like to really understand what causes the extra \. I tried shortening the data by removing the address and using just very little data for testing, but still got the slashes.
The Query
invoiceQuery = Map();
invoiceQuery.put("select_query","select First_Name AS firstName, Last_Name AS lastName, Email, Billing_Street_26 AS billingStreetAddress, Billing_City_26 AS billingCity, Billing_Province_27 AS billingState, Billing_Code_30 As billingZipCode, Transaction_ID AS transactionID, Appointment_Date_Time AS invoiceDate from Contacts where id = " + zcrm_contact_id + " limit 1");
invoiceResponse = invokeurl
[
type :POST
parameters:invoiceQuery.toString()
connection:"zcrm"
];
The Response
{\"data\":[{\"billingStreetAddress\":\"REDACTED\",\"firstName\":\"REDACTED\",\"lastName\":\"REDACTED\",\"Email\":\"REDACTED\",\"billingZipCode\":\"REDACTED\",\"id\":\"REDACTED\",\"billingState\":\"MD\",\"invoiceDate\":\"2023-09-23T05:30:00-04:00\",\"billingCity\":\"REDACTED\",\"transactionID\":\"123456\"}],\"info\":{\"count\":1,\"more_records\":false}}"