How to create multiple things from one workflow?

Hi all,

I have a data type called “Invite & Invoice” and am adding a new way for users to create these.

Before, only one Invite & Invoice could be created at a time by a Teacher and then it would be sent to a Student for payment.

Now, Students can book one or many lessons with a teacher by selecting dates that the teacher has input as available. I created a new data type for this called “Book Now” and have added fields to it that didn’t make sense on the “invite & invoice” data type (like expiration date so the teacher could be sure not to be surprised by a student at their doorstep!).

From a selected list of “Book Nows” can I create an “Invite & Invoice” for each?

(I’ve figured out how to add the totals and charge the user. And, I can show how many dates are selected! But then I don’t know how to create an “Invite & Invoice” for each selected date in the workflows.)

I hope that makes sense; I’m having a hard time wording the problem.

Thanks!!
Jen

Okay, making progress!

I’m using an API endpoint and am able to get more than one item created but it’s a little clunky. Is there a more elegant way to do this?

Or should I add in, say, 10 steps with each one only occurring if the user’s list count is greater?

Your API endpoint should have just one create a new invite & invoice action. You will then need to run the API workflow on a list, so that the action is run for each item in your list. Look for the action Run API workflow on a list.

That sounds perfect! Looking for it…

Sorry, it’s Schedule API workflow on a list …

Unnamed%20image%20(8)

1 Like

Nearly there!

How do I get around this error?
(I tried to do “first item” but then it created three “invite & invoices” all from the same “book now.”)

Here’s it on the page:

Thank you!

I’m learning so much about API workflows!

On the page, where you’re scheduling the API workflow (your last screenshot above), try setting the ‘booknow’ parameter to ‘This Book Now’ if it is available.

BOOM! I’m high-fiving you right now!

I had originally selected “Is a list/array” thinking that it was… but I (kinda) get these Keys a bit more now and see that while we’re running something ON a list, we’re not needing to keep track of the list here.

Thank you!

I’m now going to mark all these Book Nows as booked so someone else can’t book them using what I learned here.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.