Jici
19
Th like @Leon said.
You create a backend wf that will Create a thing (and update it if needed like you currently do) and update the item that trigger the WF. You will check if this item have run on all element to create, if not, run it again (schedule the same WF at the end).
It’s a little bit hard to tell you exactly what to do because we don’t know your current setting.
But imagine this case
I want to create an invoice for each month. User subscribe for 12 months. So I will
Create a subscribe item that will contain information about the subscription length (12) and invoice created (0). Right after I will trigger a Backend WF (I will name it invoice creation) on the created Subscribe item.
In this backend WF I will :
A) Create a new invoice, date = current date +month subscrition’s invoice created (that will be 0, so this will be current month)
B) Update subscription, invoice created = invoice created + 1
C) Schedule The same WF that is current running (invoice creation) only when: subscription invoice created < subscription length (I will schedule it to run 5 sec later)
2 Likes