Email → Google Drive: Email Subject not returned as usable value when multiple emails are iterated

:bullseye: What is your goal?

I’m having an issue when processing multiple emails and saving their attachments/renaming them to Google Drive.

Scenario overview:
I’m using a Email module that retrieves emails.
The scenario iterates over the emails correctly. Each email has a different Subject.

:thinking: What is the problem & what have you tried?

When the attachments are saved to Google Drive:
The first file is saved correctly and includes the email subject in the file name.
The second file is downloaded, but Google Drive does not read or apply the Subject as a usable value.
Instead, Google Drive auto-generates or modifies the file name, as if the Subject field were empty or not eligible for that iteration.

:clipboard: Error messages or input/output bundles

Even though the iterator shows different subjects for each email, the Subject is not consistently available in a usable format for the Google Drive “File name” field, specifically for the second email.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Here is the result of the files saved to the

Google Disk:

Hey there,

can you show a screenshot of how the module is configured?

Sure.

  1. Watch Email module:

  1. Google Drive module:

Thank you.

Is there any reason why you aren’t using the default Subject variable?

Asking because the one you’ve selected is a header value of type array, which is incorrect.

Hope this helps! If you are still having trouble, please provide more details.

@samliew

1 Like

You’re right. I simply grabbed the subject parameter because it was at the top of the list, without noticing it was an array.

Once I switched to the text variable, everything worked perfectly.

Thanks a lot for the help! :raising_hands: