I want to sync contacts from a third-party system to Freshdesk using a serverless app. I’ve implemented a scheduler that runs every 6 minutes to fetch data from the external system. If a contact does not exist in Freshdesk, it will be created via API; otherwise, it will be updated.
Local testing works fine using the onScheduledEvent simulation. However, after deploying the app to production, the scheduler does not trigger as expected.
I need to create the schedule during app installation from the server side. I’m using only a server.js file and Freshdesk platform 2.3. I attempted to create the schedule within the onAppInstall handler, but it failed.
How can I trigger the schedule creation correctly during app installation in a serverless app?