Upload attachment from Gmail to Zammad Ticket

Hi, I am trying to integrate email and label forwarding from Gmail to Zammad, which I have managed to do. However, I noticed that it does not transfer attachments as it does when connecting Gmail within Zammad. Can anyone help? I use Extract binary to base64, but when I have 10 attachments in 10 messages, each one is an “attachment” in the name, and it combines them into one large base64 string that I cannot separate.

The issue is that the “Extract Binary Data” node is combining all attachments into a single base64 string. To handle multiple attachments correctly, you’ll want to use the “Gmail Trigger” node to fetch the emails, and then use the “Move Binary Data” node to handle the attachments.

1. In the “Gmail Trigger” node, configure it to fetch emails with attachments.

2. Following the Gmail node, use a “Move Binary Data” node. In the “Move Binary Data” node, you can specify the “Attachment” field to extract each attachment separately.

3. Then, you can use the extracted attachments in your Zammad integration.

Give that a shot.

@achamm Can you elaborate on step 2 with the “Move Binary Date” node? I am currently trying to build a workflow for my customer to report issues via Slack and automatically create a ticket in the Zammad ticketing system. In n8n, I can receive the message and the attached screenshot from my customer using Slack Trigger, followed by an IF node to identify if the Slack message has an attachment. IF yes, I can use the HTTPRequest Node to pull the binary file. After this, I have no problem creating a new ticket in my Zammad ticketing system using Zammad’s Create Ticket node with the message, but I cannot find a way to pass the attachment into Zammad’s Create Ticket node. I also cannot find the “Attachment” field in Zammad’s node.