You’ve implemented a ‘cancel workflow’ in the logs section.
Can you please add a ‘cancel all’ button?
When you run a workflow-on-a-list there can be hundreds or even thousands of scheduled items. Canceling one-by-one in these cases is not useful.
A ‘cancel all’ button would solve this.
Can you please implement a basic ‘count’ function that shows a count of how many scheduled workflows exist right at the top of the chart (i.e. there are 2000 scheduled workflows).
Currently I have to just keep hitting ‘load more entries’ to get a sense of how many there are, and even then there is no precision to it as there isn’t any index/numbering etc.
It appears that my current issue is when the workflow is processing a list (i.e. creating multiple API calls, which generate a handful of workflow IDs). I have tried everything including “add to list”, etc. Will update as I go through this.
Ok, narrowed it down: When running a scheduled API workflow on a list, there doesn’t seem to be a way to return workflowID in each run. It only appears to work on a single API workflow run (not a worfklow running on a list).
Yes - and as per my earlier post, when you do workflows on a list you can wind up with thousands of workflows in the log at a time. We need a way to cancel in bulk (not, say, 50 at a time).
The test on the left (workflow test on a single item) does store the workflow ID…however, the test on the right (workflow test on a list) does not. Although “result of step 1” also shows, nothing is stored because the workflow has multiple runs. We would need to be able to access the workflow ID from within the workflow so that we can write it to whatever item we’re running it on (as well as subsequent items in the workflow).
It does write the workflow IDs now; however, it only allows us to store the IDs in a text data field (as opposed to a ‘list of texts’ data field). The issue is that when we go to utilize “cancel a list of scheduled API workflows”, we cannot run that action on a text field (it must be a ‘list of texts’ field). Possible fixes that I can see include any of the following:
Push a fix to allow the multiple workflow ids to be added to a list of texts rather than just a text field (currently, it still does not add them to ‘a list of texts’ field)
I just updated my program to try both. You can see here that my test app tries to store the Workflow IDs returned into both a text field and a ‘list of texts’ field: