I’m building a cloud automation that saves Gmail attachments into specific subfolders within a Google Drive folder that has been shared with me (I'm set as editor, but I'm not the owner of the folder).
My approach is based on filename prefixes. Each attachment filename starts with a prefix that matches the name of the destination subfolder. For example, an attachment namedInvoices_report.pdf should be saved into a folder called Invoices.
To implement this, my plan is to:
- Extract the prefix from the attachment filename.
- Use the “List files in folder” action on the shared parent folder.
- Compare the filename prefix with the names of the subfolders inside that shared folder.
- Save the attachment in the matching folder when a match is found
However, I’m running into an issue: the “List files in folder” action does not seem to return any subfolders from the shared folder.
Is this a limitation of the action? Does “List files in folder” only work with folders that I own, and not with folders that are shared with me?

Report
All responses (
Answers (