Workflow changing Title an Name of the file
-
09-12-2019 - |
Question
I want to create workflow which can change the Title and the Name.
This workflow activate after create or change element.
I try to get something like that:
Name - Identyfication_number
The problem is imposition of the element. When I have do any modification of this file the title and the name looks like this:
Name - Identyfication_number - Identyfication_number - Identyfication_number...
How I can stop this multiplication?
I considered to use:
- Condition in workflow
- Manually activation (check the highlighted fields)
Solution
Why not just check if Title/Name already ends with the wanted string, and if so skip the updating.
- Build the Suffix in a workflow variable.
- Check if Title (or Name) not ends with suffix (using "If current item field equals value" action)
- If thats the case update
Note that until you've selected the first item in the If the comparison is limited to "equals"/"not equals", but as soon as you select a text field you get a lot of options.