process creation to create folder from multiple ids

I have a problem, I have to create a process that, going to retrieve a series of ids through a query, for each retrieved id goes to create a folder called activity main + id number, then retrieve the folder id, and save it to the database in a special column.

I can retrieve the activity id, then I can't go further.

Thanks to anyone who will help me

  Discussion posts and replies are publicly visible