Workflow : How to make a loop on a record array

Hi,

I’ve created a workflow that retrieves a list of records and I’d like to do a loop on it, but it always returns the value 0 and the step goes into error.

This is some screenshots of my workflow:

[
  {
    "createdAt": "2024-08-21T08:14:51.910Z",
    "updatedAt": "2024-08-21T08:21:10.374Z",
    "id": 3,
    "createdById": 2,
    "updatedById": 2,
    "requirement": "Test 1",
    "optional": false
  },
  {
    "createdAt": "2024-08-21T08:22:38.440Z",
    "updatedAt": "2024-08-21T08:22:38.440Z",
    "id": 4,
    "createdById": 2,
    "updatedById": 2,
    "requirement": "Test 2",
    "optional": true
  }
]

Thanks for your help :slight_smile:

The error is in french, can you translate it to english?

It really seems to be a bug. I just tried this in my environment and I didn’t have this problem. Maybe it’s related to your version. I’m on v1.3.22-beta.20240918092631. This topic discusses to the same issue: