I am developing a app that will get contact create events from Freshdesk. I have found that the simulated product events available thru http://localhost:10001/web/test seems out of date. I would like to get a POST sample for contact update, contact create, account update account create directly from freshdesk.
When I add --tunnel to fdk run, following makes me think that I should be able to send events from Helpdesk to my local app (dev environment - not published).
Starting local testing server at http://*:10001/
Append 'dev=true' to your Freshdesk account URL to start testing
Is this possible?
I tried to connect as noted above and when I updated the contact no event was triggered in my local dev env .
It’s not possible to directly trigger the locally running app events from the Freshdesk production environment. The tunneling feature is available in FDK only for External Events to test webhook events from third-party platforms.
These are the possible way to achieve your goal to test the local app with real data.
Publish as a temporary custom app and test the app in the Freshdesk account.
Get the payload from a published custom app like the way #1 and grab the payload from Serverless logs and paste it in the simulation page at http://localhost:10001/web/test. This payload is stored under server/test_data to use in the simulation page. Those files can also be directly changed with the required payload for the simulation.
There’s no other way possible to trigger the locally running app from the Freshdesk portal running on cloud environment.
@stevemc An ngrok account is not required to set up a ngrok tunnel for the external events. However, you can add authentication for the tunnel created if you already have an account with ngrok and would like a more secure tunnel feature.
It enables authentication to the tunnel connection that’s created for your local server to the internet. More information can be found in the ngrok documentation about this option.