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.)
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.
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.
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.