Closed tilman closed 5 years ago
hi @tilman please add try catch block to below i.e. while parsing the response
var opportunity = JSON.parse(body); success(opportunity);
this to
try {
var opportunity = JSON.parse(body);
success(opportunity);
} catch (ex) {
return body;
}
This will resolve your problem, In case you need more information regarding Agile CRM REST API please check below main reference :
https://github.com/agilecrm/rest-api
Thanks, Agile crm support team.
if i call the function getDealByContactId, the function respond with following error:
Status code 400 and following body (got it with debuging features) idicate, the API is calling the wrong api endpoint.