Get file field from Message router if the webhook is before a merge node

Describe the problem/error/question

When my telegram node (image) is connected to the Message router , all we need to do is add ‘file’ to input binary field. But with this setup I have a merge node added, and now its impossibl;e to get to the file field. (data from Message router )

What is the error message (if any)?

With latest try [{{ $(‘Message Router’).item.binary }}] I get [Cannot read properties of undefined (reading ‘# Object’)]

Please share your workflow

UPDATE: I changed it to an IF, but the same question still exists.

Share the output returned by the last node

Cannot read properties of undefined (reading ‘#’)

Information on your n8n setup

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

Hey @Sebas - here’s a little simplified version (removed the telegram). This code node step gives you the binary to work with again. I guess you won’t need the merge after.

1 Like

That is amazing, thank you

I wanted to wait for the Image Analyses to be ready before posting it to Telegram. So now both Image and description arrive at the same time.

Thanks!

Below is my working flow

2 Likes

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