I’m not sure if it would help but there is a product event dedicated to this for serverless applications called onConversationCreate. Maybe that will work for your use case.
@arshath.h There’s no data available in the payload or event helper method to define which type of note has been submitted in the ticket.submitClick event. Notice that it’s a click event and not a intercept event. So, the action cannot be prevented whatever happens in the event handler method.
I could not think of any other reliable solution apart from the one that @Zach has suggested. Thanks Zack for that.
I will pass it as a feedback to Freshservice product team to add the type of note in the payload or helper data.
Also, to expose an intercept event for the same click event.