Hi freshworks community
I have created a freshworks CTI custom app 3.0 version, I am not able to create tickets as I receive the errors -
”Invoketemplate is not a function and Invalid feature or feature not available or enables error”
Below is the zip file of my code.
I have everything fine like manifest.json, requests.json and app.js code but getting error.
freshplug.zip (17.3 KB)
Hi can you please share the app code where this issue exists? We’re not able to replicate it. The code also indicates that client.request.invoke has been updated to client.request.invoketemplate. If you could share a screenshot or log of the issue along with the code zip that would be helpful.
At the moment there are multiple unrelated errors/issues in the zip you shared.
Thank you for your patience, appecriate it.
Hi Pavan, This code is working but only the ticket creation part is not working, I only want to know how to hit ticket creation. Can you share the latest working code of ticket creation in custom app on github as I have tried all things but issue not resolved.
Please check all my manifest.json, requests.json and invoketemplate part.
Meanwhile here is the latest code of mine.
My Tikcet - https://dev-assist.freshworks.com/support/tickets/6432
2-feb-code.zip (20.5 KB)
Hi Jitender,
In your manifest.json, requests have been added under modules. You can only add requests under common module. Even if you are using the same function for multiple modules you only need to declare once in common module.
Also for request templates you must use client.request.invokeTemplate(...), the function _client.request.invoke(...) in your code will not work.
Plus the fresh_client.js is no longer used. Please check your FDK version and install the latest version.
Here is a working sample app for your reference chennai-workshop/apps/sf-integration at main · freshworks-developers/chennai-workshop · GitHub
Hope this helps