Hi Team,
I’m developing an app in Freshservice Changes (Platform v3.0) and facing an issue where the change.submitNote event is triggered when a user submits a note, but calling event.helper.getData() always returns undefined. The event object contains the helper function, but it does not provide any data. Since this is for the Changes module, we initially considered using onConversationCreateHandler, but that seems to be specific to Tickets and does not work here. I’d like to know if this is a known issue or if there’s an alternative approach to capture note submissions in Freshservice Changes. Looking forward to your insights.
Here’s the code I’m using:
let client;
init();
async function init() {
client = await app.initialized();
client.events.on('app.activated', renderText);
}
function renderText() {
client.events.on("change.submitNote", eventCallback);
}
const eventCallback = async function (event) {
console.log("event",event);
//Retrieve event data
try {
const data = event.helper.getData();
console.log("Data from background:", data);
} catch (error) {
console.error("Error fetching data:", error);
}
}
Attaching a screenshot below showing event.helper.getData() returning undefined in the console.
Just following up on this. I’m still facing the issue where event.helper.getData() returns undefined when the change.submitNote event is triggered. Could you confirm if this is a known issue or suggest an alternative way to capture note submissions in Freshservice Changes?