I am new to the Freshdesk ecosystem and am currently working on integrating a custom application. I’m trying to make a GET request to fetch a contact by ID from a Freshdesk account. However, I have encountered an issue during template substitution, resulting in the following error:
`error while substituting templates. ERR_INVALID_ARG_TYPE`
I’ve gone through the documentation and searched for solutions but haven’t been able to find specific information on how to debug this issue.
Here is a brief overview of what I’m doing:
I’m using the client.request.invokeTemplate method to make the request.
The request template uses placeholders like iparam.api_key, which I have defined in the iparams.json file.
Despite ensuring that the parameters are set correctly, I’m still encountering the substitution error.
I would greatly appreciate it if someone could point me in the right direction or share any tips for debugging this issue.
For reference, I’ve shared a screenshot of my code below (if applicable, attach screenshot here).