Workflow trigger after multiple workflows end
Hi all,
I have to start a technical workflow, which exports data to CRM, after other smaller workflows end their activities.
The smaller workflows update data internally, so I have to export data to CRM only after all these technical workflows end their updates.
The best way I find to solve this problem, making it scalable for future, is exploiting logs.
The log structure is like "Action_count , Flag_export".
Every small workflow when ends it's activities, increments by one the Action_count and than checks if Action_count is equal to the number of workflow inside a specific folder. If yes, it turns Flag_export to 1.
On the other side, the main workflow, wait until the Flag_export become 1.
This way I have only to remember to put new "small" workflow in that folder and automatically the main workflow will wait until the x+1 smaller workflows end.
Is there a greatest way to manage this case?
Thanks in advance and best regards,
Luca



