How to export regression models inside the group loop

Hello all,

Please help me.

I want to export my Random Forest Models, but the models is looping for every code and channel. How can I export the model out for every loop at the same time. I gave the screenshot to give some sense about it. Thank you