I have a workflow that runs when an item is created or modified. Along the way, I have a condition set for if Version is equal to 1.0, it will go down a branch that sends some tasks. If version is not 1.0, it will go down a different branch and not send tasks (assuming the item has been modified).
Is this the best way to handle this?
Side note : what's a good way to bypass this if I needed to. For instance, if I have a query that errors out before getting to the Version check, the workflow stops. When I go to fix it, I can't get the workflow to send the tasks without going in and changing the Version check action, running the flow manually, then changing the Version check back.
Solved! Go to Solution.
It sounds like you are using a single workflow and then making the determination within the workflow if the item is modified. Why not have 2 separate workflows? One that runs when the item is initially created, and the second that is set to only run when the item is modified?
For your second question, if you split up the workflows, you can then manually pick which one to run if there is an error. I'm assuming the issue is that the process for when an item is created is failing. So when you go and try to run it manually, since it will be a new version it's going down the modified trail. However if you have a separate workflow for the created/modified process, you can just pick which one to run.
Additionally I'd work on trying to fix the query process so that it doesn't error out. Do you know why the query is failing?
You can have a SharePoint List Column named IsSubmitted, which is set to 1 when the form is created and the same set to 0 if the form is edited.
With a check on this field you can have:
This seems way more complicated than just having one workflow start on creation of a new item and one start on modification of an item, but maybe I'm missing something.
Since the query is working fine now, I have to assume it was a Sharepoint hiccup and keep an eye out for it to happen again. I like your idea of running two workflows, one for "new" and one for "modified". Thanks Brendan!