cancel
Showing results for 
Search instead for 
Did you mean: 

assign a sequence number to inbound h docs

sacchipietro
Champ in-the-making
Champ in-the-making
hi all,

there is a way to assign for each documents in a space an unique sequence number , based on rules definied by other elements (es category )?

thx

Pietro
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
The JavaScipt API combined with rules would be a great way to do this. You could store the "last" sequence number as a property on the folder itself, then use the JavaScript API to get/set that value on incoming docs via a rule.
http://wiki.alfresco.com/wiki/JavaScript_API

Hope this helps,

Kevin

sacchipietro
Champ in-the-making
Champ in-the-making
mhh i dont know javascript Smiley Very Happy there is anothere way ? (with workflow for example ) .

Smiley Surprisedops:

thx a lot

billq
Champ in-the-making
Champ in-the-making
Just a reminder about the implications of doing this should you ever enable peer server-to-server replication - you could easily create conflicts as different servers increment to the same, next serial number and then try to sync.

You may want a server-serial# sequence format.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.