Hi,
I am trying to build a Serverless Freshworks CRM App. While building the app, the lifecycle events and products events are triggering properly while testing in local using the FDK (http://localhost:10001/web/test). However, the same do not work when installed as a Custom App. I am not sure if I am missing something here. Please find below the code snippets for the same.
My Manifest.json File:
{
"platform-version": "2.2",
"product": {
"freshworks_crm": {
"events": {
"onContactCreate": {
"handler": "onContactCreateHandler"
}
}
}
},
"whitelisted-domains": [
"https://<%= iparam.crmDomain %>"
],
"engines": {
"node": "14.20.0",
"fdk": "8.6.5"
}
}
My Server.js File:
exports = {
onContactCreateHandler: function (args) {
console.log('Hello ' + args['data']['actor']['email']);
}
};