Is this possible? Thanks!
Update: Iāll explain the use case.
-
A user clicks a button that sets off an api workflow to create a bunch of things.
-
Two seconds later, the user decides to delete those things by clicking another button.
Problem: I can run a delete action but the workflow may still be looping through, creating new things.
Sure, I could schedule a workflow for 10 minutes in the future to perform the delete of the things, but thatās confusing to the user if they have to wait 10 minutes for the things to disappear.
Thatās why I want to be able to terminate an api workflow in process and then run the delete now.
Is this possible? Or is there another way to do what I need to do?
Thanks!
I schedule the delete api later and then mark it in another field called Delete as āyesā. When I have a list I just filter out all the Delete = yes. Then it removes it instantly. Hope this helps.
If you create an api workflow loop (bunch of things), then yes you can interrupt any āin progressā api workflow with a condition āterminated?ā at the API start point condition for that specific user, and then continue with another workflow. But you probably figure it out
Thanks @J805, I try to avoid filters when possible, but that would be an option.
thanks @JohnMark, but Iāve been trying things for an hour and Iām not quite getting it. Are you able to explain a little further? Thanks!
I only do filters on small lists. Like the list is already attached to the user and there are less than 100 items so it filters almost instantly. I havenāt had a problem as long as itās not trying to filter my whole database or something like that. If it is a manageable list then I feel like filtering is the simplest way to go. Iām not sure how your database is set up though so maybe the other way is the way to go.