Forum Academy Marketplace Showcase Pricing Features

Need some help bulding a recursive workflow


I need some advices on how to create a back-end workflow that creates items based on another data view.

Here is what I’m trying to do:
From this data view called “creators”

I want to create automatically new entries when a button is clicked into another data view called “youtube_extract”.

I cannot do it using “Schedule a workflow on a list” because a second workflow is in charge of cleaning the data retrieved by this workflow into another dataview i’m trying to build.

Here is what I have done so far:

Once a button is clicked, I trigger the workflow sending an object called creator which searches for the first creator entry.

Then I create “name” and “source_youtube” feilds based on this first item
Which then trigger the second workflow which cleans the data, and then call the workflow again to make it recursive, changing the object to the first item minus the one I just used.

This sort of works, but loops (I can’t figure the right Only when condition to apply) and most of all only works if I have two entries, which is not what I want obviously.

Can you explain me how I could do it?
Essentially, I want to learn how to replicate a Workflow in a list that do a search for.

I hope this is clear enough, let me know if you have any recommandations!