Can anyone tell me why, when I run another workflow instance on an item that already exists the ID # that applies to the title, duplicates?
So for instance (initial instance): Office Supplies - Company Name - 1 Re-ran instance and received: Office Supplies - Company Name - 1 - 1
In the workflow action (NAC), I have the following…
Best answer by SimonMuntz
I figured it would override the existing?
The action is overwriting the existing. It just happens that the existing is currentTitle -1. The only way to prevent this is to check if the title has been appended with an ID. Then use a Run If action that runs if the title has not been appended. If it has been appended, the action is skipped.
The first time the workflow runs, the title is updated with the current title name, and then the ID is appended. currentTitle -1
When you re-run the workflow, the current title is now currentTitle -1, so the update action reads the current title, which is currentTitle -1, and adds -1. currentTitle -1 -1 Does that clarify the issue for you?
Hello and thanks for your response! I’m still a bit confused… how do I stop the additional “- 1” to be applied? I figured it would override the existing?!
If I re-run the instance, how do I get the title to override or remain the initial?
The action is overwriting the existing. It just happens that the existing is currentTitle -1. The only way to prevent this is to check if the title has been appended with an ID. Then use a Run If action that runs if the title has not been appended. If it has been appended, the action is skipped.