Connector working as expected but not when called from an extension
I am playing around with building a Zoho CRM extension and seeing if anyone has some insight on the below issue I am facing.
When I execute the Connector API it works as expected returning me the download URL for a merged document that has merged successfully.
However when I call it from within the extension from a deluge function, I am getting a different response saying that a parameter is missing when calling the API. The latest connector version is published and the associated connector has been updated to the same version available to the extension.
Are some Zoho API's not able to be called from a Zoho Connector?
Code Snippet:
- mergeDocumentParametersMap = Map();
- mergeDocumentParametersMap.put("templateId",mergeTemplateId);
- mergeDocumentParametersMap.put("output_format","pdf");
- mergeDocumentParametersMap.put("merge_data",{"data":mergeData});
- info mergeDocumentParametersMap;
- mergeDocumentResponse = zoho.crm.invokeConnector("testextension.testextensionconnector.mergedocument",mergeDocumentParametersMap);
- info mergeDocumentResponse;
mergeDocumentParametersMap:
{
"templateId": "c3aqzb3c7f15d015a4705bd691aa36b3eff0e",
"output_format": "pdf",
"merge_data": {
"data": {
"Deal_Name": "Benton",
"Amount": 250000
}
}
}
mergeDocumentResponse:
{
"status_code": 400,
"response": {
"error": {
"parameter_name": "output_format",
"message": "You seem to be missing a mandatory parameter that's required to perform this action.",
"response_generated_time": 1705168143560,
"errorcode": "R2009"
}
}
}