This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Workflow: Add additional value on existing property

Is there a way that when a document hits a state in a workflow that a value is added?

Basically, we have many teams in our org. The document could be originating from Team A as they prepare the document. (Property: Team: Team A)

Is there a way that when a certain state is reached, that Team B is added to the multi-select property of Team?

So far I've found that workflows will let you set a property, but it will remove any previously entered Values. 

Parents
  • So you want to add an extra value to a multiselect property. You could create a script to do that for you. The script could retrieve the list of lookups already in that property, add one more item to the list and then save it again.

  • cool, I'm script-literate - do you have an example script that I could mimic for my needs?

  • Well, I have a rather complicated 300+ line script that does the above while retrieving lookups from several different sources, checking that they are not already in the list and then saving the new, compiled list into a new property. That is way too complicated for your purpose, it would take some time for me to pick out the relevant parts and create a working sample. But I do believe I posted something of the sorts about a year ago. Perhaps a search might help you find that example. Can't remember the topic from back then though....

Reply
  • Well, I have a rather complicated 300+ line script that does the above while retrieving lookups from several different sources, checking that they are not already in the list and then saving the new, compiled list into a new property. That is way too complicated for your purpose, it would take some time for me to pick out the relevant parts and create a working sample. But I do believe I posted something of the sorts about a year ago. Perhaps a search might help you find that example. Can't remember the topic from back then though....

Children