Loop to Insert into DB, Print Label for x number of times

I am working on building an app that creates bags for a mushroom farm, basicilly they will scan a source jar, it will get some info from the DB and they will specify x number of bags to create. I need the app to log those x bags into the DB and print a label for each one. Using zebra printers, so labels are printed with a HTTP POST, and is working fine. Everything works for 1 label, but I need to to repeat the actions, in order, for x number of times, specified in a number input field.

Use an additionalScope inside a loop that that will call the query X number of times in the number input field...