# Zendesk Custom Fields

**URL:** <https://community.n8n.io/t/zendesk-custom-fields/1116>\
**Category:** Questions\
**Created:** [April 6, 2020, 8:55am UTC](https://community.n8n.io/t/zendesk-custom-fields/1116 "2020-04-06T08:55:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 6, 2020, 8:55am UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/1 "2020-04-06T08:55:42Z")

</div>

Hi there, is there a solution now to have access to the custom fields of Zendesk ?  
Reading is possible but i want to add the entrys.

 ![image](https://europe1.discourse-cdn.com/n8n/original/1X/66995a31790c12f525d68e5d603f1242131394ef.png)

Or does i need to set it via HTTP Request ?

Thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [April 6, 2020, 11:13am UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/2 "2020-04-06T11:13:08Z")

</div>

Do not think that it is possible right now but @RicardoE105 will know more and can maybe add support.

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 6, 2020, 4:12pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/3 "2020-04-06T16:12:23Z")

</div>

@jan it’s not possible yet. But will add today @Stefan.

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 6, 2020, 11:21pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/4 "2020-04-06T23:21:27Z")

</div>

@Stefan Just sent a pull request adding the custom fields. You gotta turn the JSON parameters field to true and the custom fields field will show up. There you add the JSON corresponding to the type of custom field you want to set. Since to do so you would need the id I added the ability to list all the fields on the system so that you can grab it easily from there.

Regards.

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 8, 2020, 7:20am UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/5 "2020-04-08T07:20:45Z")

</div>

Hi Ricardo,

i have been made a http Request direct to the API.

It works.

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 8, 2020, 7:30pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/6 "2020-04-08T19:30:01Z")

</div>

Ricardo, do you know how i can upload attachments to zendesk ?

Like this: i have tried with a http request but it need a binary upload.  
curl “https://{subdomain}.zendesk.com/api/v2/uploads.json?filename=myfile.dat&token={optional\_token}”   
-v -u {email\_address}:{password}   
-H “Content-Type: application/binary”   
–data-binary @file.dat -X POST

How i can use thos in n8n ?  
Thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 8, 2020, 11:34pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/7 "2020-04-08T23:34:39Z")

</div>

Hey @Stefan the example below should do it. However, you gotta wait for the next release of n8n in order to use it as while I was doing this example for you I found an issue with sending binary data. I will send a pull request in a bit fixing that issue. As always @jan will let you know when is released.

```
{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://i.pinimg.com/originals/c3/24/d9/c324d97149d572b1efbe7a2d37fc86dc.jpg",
        "responseFormat": "file",
        "options": {}
      },
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://{yourdomain}.zendesk.com/api/v2/uploads.json?filename=c324d97149d572b1efbe7a2d37fc86dc.jpg",
        "responseFormat": "string",
        "jsonParameters": true,
        "options": {
          "bodyContentType": "raw"
        },
        "sendBinaryData": true,
        "headerParametersJson": "{ \"content-type\": \"applciation/binary\" }"
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        740,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 9, 2020, 3:29am UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/8 "2020-04-09T03:29:02Z")

</div>

Forgot to mention, please stay on topic. This topic was about the Zendesk custom fields and the last question is about Zendesk uploads. Next time create another topic. Thanks

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [April 12, 2020, 6:25pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/9 "2020-04-12T18:25:31Z")

</div>

The fix for sending binary data got released with n8n@0.61.0

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 13, 2020, 6:32pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/10 "2020-04-13T18:32:07Z")

</div>

Jan,  
since the last 2 Updates i get an error with Http Node.  
How can get with the Docker Image to a older Version ?

ERROR: body must be a valid JSON

```auto
Error: body must be a valid JSON
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest.node.js:642:31)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:555:37)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:370:62
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:442:15
    at /usr/local/lib/node_modules/n8n/node_modules/p-cancelable/index.js:61:11
    at new Promise (<anonymous>)
    at new PCancelable (/usr/local/lib/node_modules/n8n/node_modules/p-cancelable/index.js:31:19)
    at WorkflowExecute.processRunExecutionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:296:16)
    at WorkflowExecute.run (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:59:21)
    at WorkflowRunnerProcess.runWorkflow (/usr/local/lib/node_module

```

Thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 13, 2020, 6:32pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/11 "2020-04-13T18:32:40Z")

</div>

With Version 0.60 it works !

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 13, 2020, 7:09pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/12 "2020-04-13T19:09:43Z")

</div>

Beware: Its when i use the Raw Mode

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [April 13, 2020, 7:26pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/13 "2020-04-13T19:26:16Z")

</div>

What are you sending in the body? @Stefan

---

<div class="post-metadata">

**Author:** ![Stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stefan](https://community.n8n.io/u/Stefan)\
**Post date:** [April 13, 2020, 7:33pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/14 "2020-04-13T19:33:14Z")

</div>

I have made rollback and it works !  
My Request is SOAP XML Query. You have private mail.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [April 13, 2020, 8:28pm UTC](https://community.n8n.io/t/zendesk-custom-fields/1116/15 "2020-04-13T20:28:20Z")

</div>

Very sorry @Stefan for the issue.

Just released n8n@0.62.1 which should fix that bug.
