How to use variable from Javascript code in delivery?
Hello,
Is it possible to include a variable defined in the Javascript code inside of a delivery activity? We wrote some custom Javascript which allows us to loop through a schema of advisors & group them together by wholesaler territory so that we can send an email report to each wholesaler with their specific group of advisors who qualified for a trigger. We can use the JS API to send the deliveries in the Javascript but it is not a very maintainable solution and we would need to loop through that <delivery></delivery> block up to 200 times (once for each wholesaler that has some advisors in the schema). 
Assuming leveraging the delivery activity is the preferred route vs. using a full-on Javascript approach but Adobe Support could not let us know one way or another how to utilize variables inside of a delivery activity. Any guidance is appreciated.
Thank you!
Austin Bowen