early-cartoon-84199
04/12/2025, 9:30 AMconst ticketId = workflow.ticketId || Math.random().toString(36).substr(2, 9) // Generate a random ticket ID if workflow.ticketId is not defined
workflow.ticketId = ticketId // Assign the generated or existing ticket ID back to workflow