Hi there,
We created workspaces and used the autonumber feature, and we took some of these workspaces and reved them up with the managed state in a different workspace and workflow. When we did this, the working revision got assigend a new autonumber that was different from the active version. When we created a new document in the workspace, it automatically jumped numbers (because it used numbers for the working version). Is there a way to get the autonumber of the working version to match the active version?
Thanks for your help
Solved! Go to Solution.
Solved by broepke. Go to Solution.
Solved by dvirh. Go to Solution.
There is no way to get the AutoNumber field to persist across different revisions and working of the same item. However, you can use a regular single-line-text field or even an integer field with the addition of some On-Create scripting behavior to achieve the effect you are looking for.
To add to what Hagay said - there is a prebuilt set of scripts we ship with the main tenant and a workspace that drives it. It's super simple to reproduce it.
var itemSeqID = '332';
//set the new number
var newItemNumber = nextSeqNumber(itemSeqID);
item.NUMBER = newItemNumber;
Hopefully this isn't too simple of a description. Most of the code needed for this is in the "import" (Library) script. You're just simply calling the function in there and essentially pushing that value into the field.
Michelle Stone blogged this with more detail:
Enjoy