Product event not triggerd in Freshdesk

Hi,
I want to trigger onTicketUpdate event when ticket status changing in freshdesk. i configured onTicketUpdate event in manifest.json and handled call back function in server.js. If i update ticket status in my freshdesk account i can’t view ticket response in console. i console logged ticket response in **server.js ** .

manifest.json

{
  "platform-version": "2.2",
  "product": {
    "freshdesk": {
      "location": {
        "ticket_sidebar": {
          "url": "index.html",
          "icon": "styles/images/icon.svg"
        }
      },
      "events": {
        "onTicketUpdate": {
          "handler": "onTicketUpdateCallback"
        }
        
      }
    }
  },
  "whitelisted-domains": [],
  "engines": {
    "node": "14.21.2",
    "fdk": "8.6.7"
  }
}

server.js

exports = {

onTicketUpdateCallback: function(args) {
                console.log('Hello ' + args['data']['requester']['name']);
                console.log("hello")
            },

};

Thank you

@Kithiyon,
Seems like the error you had is not related to product events,

you can find the logs on the settings page, there is a tab for logs

to view the logs → which you added in the server.js

Hope it helps :slight_smile:

Thanks

3 Likes

Thank you @Santhosh

It’s working

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.