I’d like to ask for some assistance because I can’t think of a way to do it myself. I make a call to API that returns me a JSON string that looks something like this
[
{
"id": 1,
"name": "Some Guy 1",
"task": "Some Task 1",
"email": "some.email.1@domain.com",
},
{
"id": 2,
"name": "Some Guy 1",
"task": "Some Task 2",
"email": "some.email.1@domain.com",
},
{
"id": 3,
"name": "Some Guy 2",
"task": "Some Task 3",
"email": "some.email.2@domain.com",
},
{
"id": 4,
"name": "Some Guy 3",
"task": "Some Task 4",
"email": "some.email.3@domain.com",
}
]
The goal is to group this data by name convert it to HTML table and send that table to each person. In this exact example there would be three emails sent.
If I were to write every possible user/email in Switch node I know how to do it. The problem is this user/email list can change over time and I don’t want to come back to edit Workflow each time new user is added to the system. Is there a way to configure Switch node so that it would distribute data dynamically? If there is can someone please show me an example.
Information on your n8n setup
- n8n version: 1.20.0
