cancel
Showing results for 
Search instead for 
Did you mean: 

changing the Creation Date in Alfresco

hayleyg
Champ in-the-making
Champ in-the-making
Hi

Is there any way to change the date a document was created?  I have uploaded some old documents which of course show the date when I uploaded them.  This is not beneficial as I want to be able to exclude older documents from a search by giving them a date pre 2000 (as an example).

Great if you could help.
1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator
Hello,

you can set the CREATED date to an expliicit value via the NodeService methods only if you disable the behaviour for cm:auditable aspect. This requires you to write some code in Java for the Alfresco Repository tier. Some test cases in Alfresco already demonstrate how this may be done, e.g. DiscussionRestApiTest

Regards
Axel

View answer in original post

12 REPLIES 12

mehe
Elite Collaborator
Elite Collaborator

Didn't notice that it was an old thread - and didn't know about the simple "auditable" solution. Thanks Axel.

douglascrp
World-Class Innovator
World-Class Innovator

iwkse _‌ Sent me the link for that thread, asking for help.

After reading your answer and the following questions, I saw there were no references for the code you mentioned, and as I had the link, I decided to share it.

I thought that it would be useful for others.

iwkse
Star Contributor
Star Contributor

Yes I was interested in the thread because I'd like to implement something like this. I've just bookmarked this page and asked for an opinion to

Thanks for further developing the idea