According to the documentation if I return array of objects subsequent steps will run for each of the objects. So if I return an array of objects that contain email addresses and in the next step send email to that address, emails should be sent to all the addresses.
var output = [
{id:1, email: 'nasir9bd@gmail.com},
{id:2, email: 'nasir9bd@yahoo.com},
{id:3, email: 'nasir9bd@live.com},
];
But unfortunately only the first email is sent. Can anyone tell me what I am doing wrong?