How to send few details on a card through trello butler from a post webhook

Fahad Sheji October 22, 2022

Hey, I want to use a button on a Trello card to send details to another application (Make/Integromat)

I tried to use the butter automation on Trello for posting webhooks and couldn't figure out how to send a few details of the card in the webhook.

The things I want to send are 

  • Card ID
  • Board ID
  • Name of the card (optional)
  • Custom fields 1, 2 and 3 (optional)


Could anyone help me with this
1.png
also, which should I use, payload or header? I am new to webhooks so not sure how this goes

1 answer

1 accepted

1 vote
Answer accepted
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2022

@Fahad Sheji 

What you are doing is http request … see

https://support.atlassian.com/trello/docs/issuing-http-requests/

and additionally you need to include the variables in the payload

for custom fields the variable is {{%customfieldname}}

Fahad Sheji October 23, 2022

Thanks, I want to send the board ID and Card ID which is {boardid} & {cardid}.

I read the link but couldn't figure out how to send the HTTP request, The one's I send get an error.

Could you help me out figure out what am doing wrong.
2.png

This is the post webhook I created but it doesn't work and I get an error

milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2022

@Fahad Sheji 

payload should look something like

{"Board ID" : "{boardid}", "Card ID" : "{cardidlong}"}

Normal I work with cardidlong but if your endpoint is expect cardid go ahead and change it. 

Make sure you have all the {, } and double quotes as shown.

Fahad Sheji October 24, 2022

Thanks a lot, that worked. Are you aware of any video's on webhooks so I could learn on how to create them like this instance

Fahad Sheji October 24, 2022

btw am curious to know why we put brackets for the webhook code and also why we put ( " ) that between each word

milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2022

@Fahad Sheji 

It is just the specification and it is consistent with json definition for key/value.

Like Fahad Sheji likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events