That helped a lot. I thought because I'm parsing value to parameters I don't need global variables. But, is it possible to call another async function inside an async function?
Hope that really answered your problem. Can also use the "Select Records" command, change the Table to the second one and add any filters you need. This will return all records in a list and using the Foreach will get the job done.
@Diya.3rif Need to use reources and set maximum succes number (recomended).
If you work in one thread and use loop(not recomended), you can unset Reuse recources.