Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Retrieve Asset Publish/ updated date via API

Avatar

Avatar
Level 1
CurtBrink
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
CurtBrink
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
CurtBrink
Level 1

16-06-2020

I could really use some help here. In looking at the API documentation it does not appear that AEM is providing the dates for initial upload and dates updated via API. 

We need to integrate AEM to another system and flag documents in AEM. That flag we have a way to do based on the type of document. However if that document gets updated the API protocol should allow for us to grab only new or updated documents since the last API pull from AEM. I do not see this in the API. Am I missing something? Can anyone provide insight or guidance on this? 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

54 posts

Correct Reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

54 posts

Correct Reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
khamat_bn
Level 3

17-06-2020

Hey @CurtBrink ,

You can first create a property in the document node and maintain it. To do it we can create a workflow with launcher will need a path of the folder where your Document will reside. In the backend, you can add a property of asset or doc with custom date modified property(which needs to maintain AEM/API).

 

So next time when you add a document in a folder then automatically you will get the property created with the date which will work for AEM.

 

Now For API also, whenever the call to API happens just pull the doc reference and adapt it and update the modified date property which we have created in the above step. 

Let us know the rest.

 

Happy Coding 🙂

~BK

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct Reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Validate 1
Level 4
raghavc
Level 4

Likes

63 likes

Total Posts

61 posts

Correct Reply

19 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
raghavc
Level 4

16-06-2020

@CurtBrink You can use the jcr;created property to know the initial upload date of the asset and jcr:content/jcr:lastModified property to know the last modified date of the asset.

You can read these properties from the valueMap

 

 

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/co...

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

613 likes

Total Posts

590 posts

Correct Reply

231 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

613 likes

Total Posts

590 posts

Correct Reply

231 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

16-06-2020

@CurtBrink ,

You can try to create your own Servlet to expose this details using the "AssetVersionManager", however, data cannot be found when versions have been purged.