Only 1 attachment from Gmail Reader for mail with multiple attachments

I want to use Gmail Reader for extracting a PDF attachment to PDF reader. The email contains two attachments: one is a .pdf file, and the other is an .ics file. However, the attached_file_names of Gmail Reader only shows the filename of the .ics file, no the .pdf file.

my link: https://www.gumloop.com/pipeline?workbook_id=c3aZtzbarwsD4JAHHRATdz&run_id=gotaue7UDQQgFB8Q7xPkcu

Hey @sstar - For multiple attachments the output from the Gmail reader is the file names separated by a comma. So in your case this was the output:

gotaue7UDQQgFB8Q7xPkcu/ESUN_Estatement_11312.pdf,gotaue7UDQQgFB8Q7xPkcu/設定繳款提醒(iOS手機裝置請使用內建郵件App開啟)_11312.ics

Both the PDF and ICS files are available here you just need to extract them. You can use the Split Text node here to split the output which is separated by a comma and get a list of all the files.

Let me know if that works for you.

Hi @Wasay-Gumloop , thank you so much! It works.

However, something was wrong at the step: Extract Data. Should I open a new post for the problem?
Failed link: https://www.gumloop.com/pipeline?workbook_id=c3aZtzbarwsD4JAHHRATdz&run_id=LBhvCgGz9XBRzNmjYWwfp2

It looks like DeepSeek timed-out here. Their API has frequent outages so the service can be sporadic

If you try again or switch the model it should work as expected.

1 Like

This topic was solved and automatically closed 60 minutes after the last reply. New replies are no longer allowed.