I have a workflow that has a 'Save' button and a 'Submit', which either saves a form to a SharePoint list or submits it to a workflow depending on some rules I've set.
Sometimes, users will submit an item, and then open the same item at a later date to make some changes and submit it again.
This works well, however the previous workflow remains. I want to include an action at the start of the workflow that cancels any previous workflow for that same item that may be running. How might I achieve this?