Reference all items

Describe the problem/error/question

I want to create a workflow which every day fetches data from several RSS feeds, then combines it and sends concise digest of all news to a discord channel.

I am able to fetch data, but I have a problem with composing message. It should look like this:
News from last day from site X:
Title:
Link:

Title:
Link: (and so on, for all the articles)

I never know how many articles there will be in given day, 2 or maybe 10. How do I reference ALL of the article data in discord node to compose the message? I’d imagine something like this:
for n in articles:
print “Title: data[n].title”
print “Link: data[n].link”

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

Hey @Karol_P hope all is good.

Something like this?

1 Like

OK, I see you did this via javascript, not N8N block. I think it looks good, thanks!

1 Like

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