We have built a serverless app and when we are trying to log the ticket details received from the argument “onTicketCreateEvent” in sit environment. However, we have observed that some random number is getting appended to the attribute name of the custom fields, due to which code logics are failing .
Please check the screenshot attached with this post.
By the looks of the property it appears like a custom field. But I am also not sure from the freshdesk docs why there’s an _123456 random number gets appended. Usually, its the name of custom field itself.
I believe this is out of the box behavior when you try to use the data from payload received in your handler. The OOB payload will have custom fields appended by account id. I faced the similar situation and the work around was to fetch the ticket details using Get Ticket API.