We are working on serverless events onTicketUpdate and onConversationCreate. The events are successfully triggered in the local environment. However, when testing as a custom app, onTicketUpdate is triggered, but it does not return the required details. Additionally, onConversationCreate is not triggered at all.
Please find attached the server.js code along with screenshots of the local and production environments.
I’ve tried using the expression console.log(args?.data?.ticket?.changes, “-------------->ticket changes”). While this appears to work in the custom app, it returns “undefined” in my local environment.
I noticed in the documentation that "changes" is listed as a separate attribute. Could you please confirm whether the JSON structure in the documentation is accurate and consistent with the JSON structure returned in the portal? I’ve attached a screenshot of the attributes for your reference.
For “onConversationCreate” I changed from args to payload. I couldn’t see any event triggered when a reply or note is created.
The documentation indeed has a mistake with respect to changes in onTicketUpdate, I will check with the corresponding team to get it corrected.
Can you please share the ticket details like display id, account id, reply created time for which conversation callbacks are not triggered, so that we can debug and check.