Looping through array

This issue is resolved and here's how.

jsMakeBulkBundleStudyArray.trigger({
    onSuccess:function(data) {
      insertBundleStudy.trigger({
        additionalScope: {
          dataArray: data
        }
      })
  }
});

triggers this

 var newData = [];
//ListboxStudies.value.forEach(num => console.log(num));
  ListboxStudies.value.forEach(num => {
    newData.push({
    study_id: num,
    bundle_id: tableBundles.selectedRow.data.id
  })
});
return newData

and then triggers a GUI Bulk Insert with this

{{dataArray}}

as the Array of Records to Insert.