Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

Change type using API

$
0
0

Hi Experts,

I have created a custom type as below

Insurance documents
cm:content


d:datetime


d:text


d:text


d:int


In file /u01/AlfrescoDMS/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml file this type is associated to cm:content as below



When i go to Details page for any file and click on "Change Type" link from right side of page (Image attached) I can see the type as "type.my_ins". If i select this type and click on OK then it shows success message and also the properties which i have added in the respective model.xml file, are visible in "Edit Properties" page.

So i believe the changes i have made to add additional properties are working fine. The question is when i add new file in the repository i want to change the type of that file to "type.my_ins" through API and then i also want to set the values in those additional properties. How can i do that?

Regards,
Vikrant Korde

5.0.d

Regards,
Vikrant Korde


Viewing all articles
Browse latest Browse all 252

Trending Articles