how can I create multiple things at once when clicking a button? I would like to create several events at once with different dates depending on input. For example “repeat event at 1:00pm 4 times the next few weeks” when the user types in 4 in an input.
In the forum realized that I need an API workflow with this, but on which list would I run this in that case? I thought about creating a list in states but that leads to the identical issue: How to create several states depending on input X by the user?
how can I tell my API workflow to run exactly 4 times? I’m kind of stuck here… The input of the user is basically an event name, date, and then the amount of recurring times.
Each time you run it, deduct 1, and only re-run it when the number is more than 1.
You’ll need to pass the name and date as well, and each time you reschedule it, modify the date accordingly (based on whatever interval you want between events) - e.g. date plus 7 days
Finally, when the button is clicked in the app to create the events, you would run a workflow that calls the backend workflow and sends the appropriate parameters based on the values the user entered.