API workflow to work on multiple lists

Hello-

I am trying to have a user event create a series of entries into a datatype.

The datatype is structured that each entry has 3 fields: user1, user2 user3.

when the event is trigged, user1 will always be the current user., user2 will be current users friends (list of users data field within user datatype) and user 3 will be user2’s friends (list of users data field within user datatype).

So for example, when current user has 5 friends, and those friends have 7 friends each, the workflow should create 35 entries. (35 unique entries for user3, 5 unique entries for user2, 1 unique entry for user1).

I have been able to create similar workflows to operate on 1 list, but having two lists is giving me challenges.

Thanks!

This seems like a job for a recursive workflow.