How to iterate array values on Pipedream? Its a simple array with ids. In next action i will get more details about the id

Hi,

I am struggling to loop array of id’s. Can someone help me with this?

I have tried below node.js but it is not working

// To use previous step data, pass the steps object to the run() function
export default defineComponent({
async run({ steps, $ }) {
const list = steps.trigger.event.body
for (const item of list) {
console.log(item)
}
}
})

I have found the solution. We can close this ticket.

1 Like