Return list of created things via "Return Data from API" for recursive backend workflow creating new things

Hey all,
I hope someone can lead me to a solution for my problem. Any help is highly appreciated! Thank you in advance.

What I want to achieve:
Create a (recursive) backend workflow which creates a certain number of things and returns the list of things created.

What I have:
In the front end the user creates a marketing campaign. For this marketing campaign the user wants to create X pinterestPins. The user types in a number for X to specify how much pinterestPins he wants to create.
With this informations I want to create X pinterestPins within a backend workflow which at the end returns the list of created pinterestPins.






I exposed the backend workflow as a public api workfow, so that I can use the result.

What the problem is:


Result with the current setup:

Expected Result: List of pinterestPins

Result with a slightly different setup: I deleted the condition of the last step of the backend workflow



Expected Result: List of pinterestPins, but there is only one.

The result of the backend workflow (create X pinterestPins) is totaly fine. However, I am not able to manage to create a response that contains all created pinterestPins.

Is anyone out there who had the same issue and solved it? Appreciate your help!

Cheers,
Thomas

I won’t happen. You are scheduling another API workflow that doesn’t return anything to the original WF. And there’s no way for that.

The options you have could be to create an item that all created item will refer to in a field (so you know they belong to the same request). Could also be a reference field (text)

Another option, that could be the best option, is to use Data API instead with Bulk create.