I’m facing an issue with our custom Click-to-Call API, called using the invokeTemplate
method of the Freshdesk SDK. The request template includes the phone_number
parameter:
{
“clickToCallEventTemplate”: {
“schema”: {
“method”: “GET”,
“host”: “<%= iparam.ip %>”,
“path”: “<%= iparam.pathbase %>click-2-call”,
“query”: {
“user”: “<%= context.user %>”,
“phone_number”: “<%= context.phone_number %>”
}
}
}
}
The API endpoint is:
https://${client.context.settings.ip}${client.context.settings.pathbase}click-2-call?user=${email}&phone_number=${event.data.number}
.
Despite the phone_number
being present in the request (verified via the attached HAR file), the API logs indicate it is null:
Please help identify why phone_number
is not being correctly received by our custom API even when it is being shared in the context as per the request method documentations .
Best regards,
Sidhant Kaushal