Hi,
I would like to create a field to be used for documents added to a specific repository. The document ID must be continuous and automatically added to documents upon upload/scan.
Any idea of how to create such workflow?
Hi,
I would like to create a field to be used for documents added to a specific repository. The document ID must be continuous and automatically added to documents upon upload/scan.
Any idea of how to create such workflow?
You'll need to trigger a workflow when new documents come in, and get the "next value" from a database.
This article is a great one that talks about using this for a new unique invoice number, it works the same!
http://www.dfarber.com/computer-consulting-blog/2014/2/16/create-unique-invoice-number-in-sql.aspx
The identity field is not guaranteed to be continuous in SQL 2012 and higher. See this article for more information and a possible solution involving SQL sequences.
I'm curious about your requirement for a continuous identifier. How are you going to use it, and what problems are caused by a gap?