If I change a field name in the Admin Console or change some other metadata, how can I make a mass update to my workflows so that they are all updated with the new field name? Same goes for if I export a workflow definition from one repository and open it in another, how can I make an update to all of the workflows at once? Is there a update metadata utility like in Quick Fields?
Question
Question
How to update field names in all Workflows?
asked on March 9, 2015
0
0
Replies
replied on March 9, 2015
There isn't a utility to do it.
0
0
replied on March 9, 2015
Hi Jessica,
Since there isn't a utility, you could
- Export all the workflow definitions (ctrl + click can select multiple workflows on the export screen)
- Open them in Notepad++
- Do a find and replace on the values
The .wfi files are xml and editable but depending on your comfort level and the task at hand, it may be easier to use the workflow designer and manually update each portion.
Here's an example of the field names within an "Assign Field Values" activity. In this case I have two field names, "Full Title" and "Sections". Both are string types.
<FieldValue> <Field>Full Title</Field> <Type>String</Type> <Multivalued>false</Multivalued> <MultivalueHandling>Append</MultivalueHandling> <Values> <Value>%(PatternMatching_chapterTitle)</Value> </Values> </FieldValue> <FieldValue> <Field>Sections</Field> <Type>String</Type> <Multivalued>true</Multivalued> <MultivalueHandling>Replace</MultivalueHandling> <Values> <Value>%(Checkforrepealed_repealText)</Value> </Values> </FieldValue>
So in theory if you had very unique field names (which wouldn't conflict with token names or other names appearing in the workflow) you could do a search and replace on ">Old Name of Field</" : ">New Name of Field</". Leaving the > and </ in to ensure it's the full xml value denoted in the workflow definition file.
0
0
You are not allowed to follow up in this post.