Update custom field in trello

Hi friends, I am using http request node to modify a custom field in trello, trying to do so I get invalid data error.


If I do the same with the Empty Value field, it works fine.

As I have reviewed in atlassian forums and on the internet, the problem is because the data type must be set

The execution of the code shown in the previous image works through postman, however I don’t know how to execute that in n8n.
However I have put it everywhere to see if it works, but I am doing something wrong. Where should i put that to make it work?

Could you please help me.

Thank you

Hey @patomi,

Welcome to the community :sparkling_heart:

You can refer to the following HTTP Request node to update custom fields. You will have to configure your credentials, and the respective IDs. (You can copy the below code, and paste it on your Editor UI!)

{
  "nodes": [
    {
      "parameters": {
        "requestMethod": "PUT",
        "url": "https://api.trello.com/1/cards/<CARD_ID>/customField/<CUSTOM_FIELD_ID>/item",
        "jsonParameters": true,
        "options": {
          "bodyContentType": "json"
        },
        "bodyParametersJson": "{\n  \"value\": {\n    \"text\": \"New Value!\"\n  }\n}",
        "queryParametersJson": "{\n\"key\":\"<YOUR_API_KEY>\",\n\"token\":\"<YOUR_TOKEN>\"\n}"
      },
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        520,
        390
      ]
    }
  ],
  "connections": {}
}
1 Like

First I want to thank the quick and important help provided, and the willingness to help with the solution. It is truly inspiring to participate in this community and receive the selfless help of people. Thank you!

I know that my limitations as you learn are enough, and therefore, I would like to please tell me where I should put the code that you sent me. I already changed all the data and IDs, I put it in the Body Parameters: from the http request node. but the error continues.

It is very likely that you will not go there, and that the error is mine, if you could clarify that for me, I thank you very much.

The code he sent you it’s a workflow for testing. You have to copy all the code and paste it into a new workflow. When you do that, you will see an HTTP node configured as you need to configure yours.

1 Like

Thank you very much, everything works perfect!

Many thanks to @harshil1712 and @RicardoE105 for their help.

As a newbie to n8n and newbie to programming, I must say that I am really impressed with n8n, it works perfect and the n8n support community is really great, the response and help comes faster than on a paid platform.

Thank you all very much and I hope to be a contribution also to others on my learning path.

2 Likes

Good to know that you are enjoying n8n. We are happy to help. Let us know if you have further questions.

1 Like

Thank you very much! :raised_hands:

Hey @patomi!

I am glad we found a solution! Have fun :tada:

1 Like