cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate unique identifier in alfresco

ashwinis
Champ in-the-making
Champ in-the-making
Hi,

I have custom field ex: projectID as a numeric, during the create i want to make it as system assigned value,
How can i achieve?
Am using Alfresc 5.0b


2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
You need to create a rule for that.
Create a rule which will be invoked during project creation and invoke a script.
In script add logic to generate number and assign to newly created project.

Other way:
Create new action called "Create Project"
Implement it internally to create content and assign system generated name.

ashwinis
Champ in-the-making
Champ in-the-making
Hi,

I have used the content behaviors to generate the unique id on creation of new node.
It works great.