I have the following in a Code node - it creates a number of HTML links from a previous node - the output is then passed to a HTML node to be formatted. Later on, this HTML is added to the body of an Email node.
let htmlRows = "";
// called 'myNewField' to the JSON of each one
for (const item of $input.all()) {
htmlRows += item.json.html;
}
return [{htmlRows:htmlRows}];
The HTML is generate fine and appears in the preview of the email node - but I get the error: Missing pairedItem data (node ‘Code’ probably didn’t supply it) when the email tries to send.
This was working fine in an older 0.2 install - I’m trying to migrate it to 1.20.0 which is where the error is.