How to change cm:creator ,cm:modifier for a document ?

cancel
Showing results for 
Search instead for 
Did you mean: 
vinayasree
Member II

How to change cm:creator ,cm:modifier for a document ?

I have written a custom function uploadFileinAcs() which uploads files to Alfresco. Every time when a document is uploaded through this function I want to change the name of cm:creator and cm:modifier to some "xyz". How do I achieve this?

1 Reply
angelborroy
Alfresco Employee

Re: How to change cm:creator ,cm:modifier for a document ?

It's not recommended to modify those fields, since they are protected by the "cm:auditable" aspect.

You may change this behaviour, but it would provoke some side effects on the system.

It should be better to add some custom aspect to include these properties.

Hyland Developer Evangelist