Javascript query won't recognise components

I am trying to build a javascript query to loop through selected rows in a table and call a REST query to do some work based on some the row data.

The javascript query will not recognise the table component that I want to loop through. It doesn't see any of the components on the form even though they 100% are there.

Please see screenshot showing the tabl and and the query showing it as undefined.

Easlier this was working. I have refreshed data into the table as that can sometimes cause issues.

Any idea how I can prompt the query to recognise the components?

Welcome to the forum!
It should be selectedRows as long as you have more than one row selected
Try removing .data

1 Like

Thank you. Yes that worked. Much appreciated.

1 Like