Thanks @giulioandreini.
Based on your solution, I worked out with just the code node with the below code. One question, In code node how do I access data from other node that are not immediately before this
For example, what will be the eqivalent of
{{ $node["Approve Webhook"].json["body"]["0"]["requestId"] }}
let finalString = "";
console.log($input.first().json.body)
for (let i = 0; i < $input.first().json.body.length; i++) {
finalString += $input.first().json.body[i].user + " - " + $input.first().json.body[i].statusMessage;
// Adds a line break after all elements expect the last one
if(i < $input.first().json.body.length - 1 ) finalString += "<br><br>";
}
return [{"result":finalString}];