cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use webscripts to update values to content model attri

shikarishambu
Champ in-the-making
Champ in-the-making
Hi,
I wanted to see if there is a way to update a document metadata/ content model attributes using webscripts. The sample webscripts all seem to be related to search/ retrieve. The upload example does not have a way to specify the attributes. I am guessing, that is delegated to Alfresco.

I want to
1. Upload into Alfresco space
2. Transform to a specific content type
3. Specify attribute values

I know that 1. can be done using webscript, 2. can be done using rules. An option available for 3 is the specify the attributes on the document and then use the custom metadata extracter. However, I wanted to see if there is a way to directly specify this in Alfresco.
1 REPLY 1

invictus9
Champ in-the-making
Champ in-the-making
Check the Javascript API for functions that will add aspects to or specialize the type of a document. You can certainly set properties of such documents from Javascript as well.