cancel
Showing results for 
Search instead for 
Did you mean: 

Editing the cm:creator value

cnihill
Champ in-the-making
Champ in-the-making
Hi,

I am looking to edit the cm:creator value as it passes through a workflow process from one user to another.
I am looking to update the creator to the current username from the previous creator.

I am using the following line in the relevant process definition file

document.properties["cm:creator"] = bpm_assignee.properties["cm:userName"];

I have been able to sucessfully edit other custom values like the reviewer using this same method but the creator value will not change.

Is it possible to edit this value?

Thanks,
Clem.
3 REPLIES 3

matjazmuhic
Champ on-the-rise
Champ on-the-rise
Are you sure cm:creator is of type d:text? Try with the whole person object.

Just a guess.. Smiley Happy

kevinr
Star Contributor
Star Contributor
The cm:creator is a system managed property, it is maintained by the repository underlying services.

If you want to manage in a similar value in your own custom property then you can do that…

cnihill
Champ in-the-making
Champ in-the-making
Thanks for your help guys.

We have found a workaround however. The reason I wanted to edit the creator value was to prevent the creator from continuing to have write access to a document after they have sent it to another user in a workflow.

This can be combatted by adding the ownable aspect to the document which gives the owner all rights rather than the creator.

Thanks,
Clem.