Hi, I have a workflow which turns Slack messages into tickets. This workflow contains formatters to pull information from the message like email, phone number, etc. In the last step, I need it to create a ticket using the information extracted from the previous node.
The step before the ticket creation is Zendesk user creation, it creates a user for unique email addresses, and updates if they are already a user. This allows me to have a user ID available in creating a ticket.
But on the last step, âcreate a ticketâ in Zendesk node, it doesnât have the fields I need to set the requester, or the user of the ticket. It also doesnât have a way to make the first comment private.
Iâm not good at coding to make my own HTTP request so Iâm relying on the available features in the nodes. If I really need to do it, can someone explain it in a way thatâs easy to understand for begginners.
Our company relied on the native integration of zendesk and Zapier, so we are still unsure if using this N8N workflow would be effective given this issue.
Looking at the Zendesk node documentation, you can set the requester using the âAdditional Fieldsâ section in the Create Ticket operation. Add a field called `requester_id` and use the user ID from your previous Zendesk user creation step. For private comments, you can add `comment` as an additional field with `public: false` in the comment object.
If you need more control, hereâs a simple HTTP Request approach:
⢠Use HTTP Request node with POST method to `https://[your-subdomain].zendesk.com/api/v2/tickets.json`
⢠Set authentication to use your Zendesk credentials
⢠In the body, structure it like: `{âticketâ: {ârequester_idâ: {{$node[âZendesk_Userâ].json[âidâ]}}, âsubjectâ: âYour subjectâ, âcommentâ: {âbodyâ: âComment textâ, âpublicâ: false}}}`