I want to get the details of active servers and send it via email. My get Data is showing lot of details and some times only one server is active and sometimes 100 servers will be active. In my send email node I am using the previous workflow data as expression which is like below.
{{$node[“Server info”].json[“servers”][0][“hostname”]}}
[0] is sending only the first server in the list and ignoring all others. Is there a way I can list all of them with single expression.
Thanks @Miquel_Colomer
It worked. I added a list to the return to fetch other details like server ip.
return [server.hostname, server.ip]
I am getting the data output like below.
server1,ip1,server2,ip2
Any way to put this in table?
I don’t have programming skill. Can you suggest if we need to learn Node.js to understand and write these functions in the future? or any other programming?