I'm setting up an automation rule. As you can see in the image, I've managed to get the cardname and cardlongid, but I'm stuck on how to access the attachment URLs and filenames. Any ideas?
Hi @刘旭杰
Can you explain what you are trying to do?
There are just too many limitations with Trello automation to give you all of the information.
You could use an http get in trello to get
https://api.trello.com/1/cards/{id}?key=APIKey&token=APIToken
You can process the response with the dot notation so you can then build your JSON using {httpresponse.attachment[0].link}
This falls apart because Trello automation isn't smart enough to know the number of items in the array. I have tried and failed many ways to get this to work.
An ugly alternative is to post {httpresponse} elements to a comment and then us an automation with regex to match elements. (to use regex in Trello you have to use the format regex:/yourregex/
If I wanted to achieve what you were looking to achieve, I would post to a webhook in Make (make.com)
with a payload that just includes the cardidlong.
This would then trigger an https get for /cards/{cardidlong}, which would give you all the information you need.
I have configured an automation rule to send an HTTP POST payload to my web database upon card archival for statistical analysis. I intend to retrieve this data within Trello using an HTTP GET request. This method appears valid. Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, my friend, I was thinking about Jira automation. Forgive me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you use AI to create that response? It is incorrect!
{attachmenturls} and {attachmentnames} are not valid variables in Trello.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, my friend, I was thinking about Jira automation. Forgive me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.