Server Connect Lists - how can I have an array in them?

In Server Connect, I've created a List Array and I want to add an array into it so I've done this:

But, how do I then populate this with data? If I add a 'Add In Array List' I only see this:

So how do I add data to the variables within the array 'Charts'?

Does this help.

Thanks @Hyperbytes, that's an excellent tutorial. I am still a little unsure as to how I can cycle through data and create records in the array which each contain arrays within them. Does that make sense?

Cheers again.

Should this element be an object or an array?

Array:

{
  "listCharts": [
    {
      "Title": "Title here",
      "Charts": [
        {
          "QuestionShortText": 124,
          "Myscore": 1234,
          "Ref1Score": 12345,
          "Ref2Score": 1234,
          "Ref3Score": 123456
        }
      ]
    }
  ]
}

Object:

{
  "listCharts": [
    {
      "Title": "Title here",
      "Charts": {
          "QuestionShortText": 124,
          "Myscore": 1234,
          "Ref1Score": 12345,
          "Ref2Score": 1234,
          "Ref3Score": 123456
      }
    }
  ]
}

Good question. And I'm not entirely sure.

To add some context, I want each record (Title and Charts) to be a chart on the front end. And then each chart will contain any number of sub-records (QuestionShortText, Myscore, Ref1Score, Ref2Score, Ref3Score). So the front end will repeat through the records creating a chart each time.

Does that make sense?

Edit: thinking about your question, I think Object is the way to go. Do you agree?

However, whether it's array or object, how do I actually populate it? What's the process involved?

For the chart values not sure about your case but maybe you would need an array with values?
To create an array in the server action use repeat step with setvalues inside:
Screenshot 2025-07-25 at 14.32.56

For object use a group step with setvalues inside. Then pick the repeat (or group) depending on your use case:
Screenshot 2025-07-25 at 14.32.47

1 Like

Brilliant. I'm onto it. Thanks @Teodor and @Hyperbytes.

Sorry, in your last screenshot, what goes in the Charts field? Assume I'm using an array as you recommend.

Pick either the group or the repeat step. They return either an object or an array.

1 Like