I am trying to get a string with all the attachment names from Gmail as input
I am encountering an issue while trying to extract and concatenate the names of all email attachments from Gmail into a single string within my scenario. My objective is to create a comma-separated list of attachment names from emails processed through the Gmail module.
I’ve tried the following:
- Using
join
Function with.fileName
: I attempted to concatenate the attachment names using thejoin
function:{{join(1.attachments[].fileName; ",")}}
. However, this approach only yielded an empty string.
{{join(1.attachments[].fileName; ",")}}
- Using
join
Function without.fileName
: When I tried{{join(1.attachments[]; ",")}}
, the output consisted of a series of{object}
placeholders (e.g.,{object}, {object},...
). The count of{object}
matched the number of attachments, but I could not retrieve their names.
{{join(1.attachments[]; ",")}}
- Module Screenshot: