Add attachement name in gmail

In the Gmail addon, it would be nice to be able to have the list of attachments (like we get the firstname of the recipient).
Bonus, an option to display or not the extension of the file.

Use case
Everytime I send an invoice I add something like this:

number: F-0832
amount: 450€
object: website speed optimisation

I would love to be able to attach my F-0XXX.pdf file and then trigger my snippet that will display the filename without the extension (F-0XXX) at the right spot.

We can imagine with multiple files array, but in my case it's only a single file.

Would be great to have this. :slight_smile:

For now I just made this work around, maybe it can help someone else:
{=replace(catch({site: text; selector=.vI}, "F-0XXXX.pdf"), ".pdf", "")}

Note : it's just working for ".pdf" files.

1 Like

Hi @LauGau - welcome to the forum!

Interesting use case and great application. Well done! :slight_smile:

1 Like