jcr:lastModified & jcr:lastModifiedBy not updating in AEM as cloud | Community
Skip to main content
djohn98390536
Level 4
May 20, 2024
Solved

jcr:lastModified & jcr:lastModifiedBy not updating in AEM as cloud

  • May 20, 2024
  • 4 replies
  • 1592 views

When i tried to update the any metadata property of an asset jcr:lastModified & jcr:lastModifiedBy which is present under "/jcr:content/renditions/original/jcr:content not updating . Requirement is whenever any metadata property gets updated these two values should also be updated .Kindly provide any suggestion how to resolve this issue.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

@djohn98390536 

 

Metadata update should not affect the date under original rendition.

 

OOTB, metadata update is not updating any modification date on the Asset. We might need to write a Workflow launcher to update a custom property when metadata updates. We would need to listen to changes in "metadata" node and listen to only the required properties.

 

 

 

4 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 20, 2024
djohn98390536
Level 4
May 20, 2024

Hi @estebanbustamante thanks for ur time to reply .In my case whenever i tried to change any property these two property not getting updated should i try with some launcher configuration to trigger the the OOTB workflow like DAM metadata writeback or DAM set Last modified date workflow or is there any other workflow need to trigger ?

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
May 21, 2024

@djohn98390536 

 

Metadata update should not affect the date under original rendition.

 

OOTB, metadata update is not updating any modification date on the Asset. We might need to write a Workflow launcher to update a custom property when metadata updates. We would need to listen to changes in "metadata" node and listen to only the required properties.

 

 

 

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
June 4, 2024

@djohn98390536 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Level 2
June 26, 2024

This can be achieved by creating a custom launcher and invoking "Dam set last modified date" OOTB workflow model. This updates both jcr:lastModified and jcr:lastModifiedBy both properties. Problem with "Dam metadata writeback" is, it update jcr:lastModifiedBy property with the "DAM write Service"  service user but not the actual user who is editing asset.

Note -: Here important properties which should be updated carefully in launcher are  "Event Type", "Path" and "exclude list" properties as mentioned in below image.