In SharePoint 2013, I have developed a custom ribbon action that is associated to a Content Type, which is in turn also associated to a workflow. The exact same URL is built up under the ribbon action as would have been triggering from the workflow ribbon action. I gather List (GUID), ID, ItemGuid, and TemplateID. For Template ID (which is really
WorkflowAssociationID), I use the REST API, such as:
...to get this by its Name. It's name being "My Workflow", not "My Workflow (Previous Version:26/05/2016 1:43:56 PM)".
The problem I'm facing is when the workflow runs, it is running a previous version of the workflow, such as "My Workflow (Previous Version:26/05/2016 1:43:56 PM)", when I would have expected it to run "My Workflow", which is the latest version.
If I happen to do this twice, which would mean I visit the
..page, then it will pick up the correct workflow and runs it. Without me visiting this page before it does not know which is the latest version of the workflow.
Has anyone experienced this?