We are currently updating an existing marketplace app and need to integrate a function that calls the Freshdesk API using the Freshdesk SDK client. However, we’ve encountered an issue where the client object from the Freshdesk SDK doesn’t seem to be available in iparams.html, even though its script has been added.
I want to know where you are trying to make the above request—in your iparams.js or app.js?
If you are trying to invoke the template from iparams.js, you can’t access the iparams values in request.json. Instead, you need to send the api_key and domain as contextual data.
I am trying to invoke the template from iparams.js, so I understand that I can’t access the iparams values directly in request.json. I will modify the code to send the api_key and domain as contextual data instead, as you suggested.
I will make this change and test the API call again.