Run query for every row of table and return values for each in array?

Hi @Kabirdas,

Wonder if you can help me - I'm trying to adapt what you've explained here but I am stuck on something (that I think might be simple!).

My query is:

const promises = theTeam.data.map((row) => {
  return getTimeLogsFromJS.trigger({
      additionalScope: {
        accountId: row.jira_account_id, from: fromTo.value.start, to: fromTo.value.end,
      },
    })
    .then((data) => ({  results: data.results }))
})

return Promise.all(promises)

The result is of the structure shown below, however I just want to have an array of 'results'. The reason is that if I try to use this query as a source for a table as below, it says the result set is empty:

{{getTempoTimeLogsNEW.data[i].results]}}

The above is empty, but if I put 'data[1].results' temporarily, it gives me data, but just for the second element in the array.

Any help would be greatly appreciated.

Thanks!
Nick