Gmail multiple attachments filter images

i want to filter out anything except pdf but

{{ $binary.attachment_00.fileExtension }} works if there is only one attachment but i f there are more attachments this fails

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

anyone? anyone here?

{{ Object.values($binary).some(a => a.mimeType.includes('pdf')) }} on the filter node will pass all attachments if there is a pdf

2 Likes

Hi @4w367ytw ,

Sorry for the long wait - we’ve grown a lot in the past few weeks and are working on getting up to speed with everyone in our community.

Thanks for sharing your solution! :heart_hands:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.