Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use Butler to remove a PDF attachment

nvindice May 9, 2022

Hi, we feed our Trello board with auto-generated Mails which have PDF attachments. I would like to remove all of these attachments first thing when a card enters the board. How is this possible?

Thanks in advance!
Nils

1 answer

0 votes
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.
May 10, 2022

@nvindice 

There is single action to add/remove attachment via link but I cannot find a way to iterate through all the attachments and looking for pdf specifically and removing the attachment. It can definitely be done via http request using trello api.

nvindice May 10, 2022

Thanks, is there a way to remove a specific PDF with the "remove link" action? I do know the filenames, but it does not seem to work this way.

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.
May 10, 2022

@nvindice 

I am not at my desk but I think the url has the attachment id in the path besides the name. 

nvindice May 10, 2022

@milynnus Yes, there is one. I was hoping I could remove the attachment just by it's filename, but this does not seem to work.

However, I can't find a way to build deleting the PDF attachments using the Trello API with only a single http request, too. So there does not seem to be a way to solve my problem with Trello+Butler only, right?

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.
May 10, 2022

@nvindice 

The http request can call an endpoint that has ability to go through all the attachments to find the name match if that is what is required. 
here are some examples 

https://github.com/xu2xulim/Superhero/blob/master/Superhero%20on%20deta/Micros/Attachments.md

nvindice May 13, 2022

@milynnusThanks, but this is a third party service, right? As the information on the cards is quite sensitive, we would like to use Trello and Trello services like Butler only (as stated in the initial request). Or am I missing something?

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.
May 13, 2022

@nvindice 

It is something I developed but you can always have one built just for your use. If there is a Butler solution, yes you should go for it. 

nvindice May 13, 2022

@milynnusWe work under German GDPR/DSGVO with a mandatory DPA. I guess our problem is not large enough to justify the effort here.

However, I was expecting this simple feature ("remove all attachments" oder "remove attachment with name") to be a part of standard Butler features.

Thanks for your help!

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.
May 13, 2022

@nvindice 

I am not familiar with German regulations but as far as I know there is none. Trello provides the http request within Butler for you to call services to handle such unique requirements. So you can get you in-house developers to create a service for you. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events