Programmatically create page version comparison link. | Community
Skip to main content
Level 2
January 24, 2024
Solved

Programmatically create page version comparison link.

  • January 24, 2024
  • 2 replies
  • 912 views

Hi,

I have a requirement to generate page version comparison link. This generation should  be done programmatically, I checked the network tab in inspect mode and found that when we click on "compare to current" button, a post call is being made as below:

 Checked in Postman tool and got the response as:
/tmp/versionhistory/cda84fd965d9f4dc59b3ec0eb3d50419109811fb85c90f303cea30374636dc3c/a627f8c8-b6dc-4ba5-b6ce-0f2f76810b9f/myProject/xyz

 

Now, how can we create this POST call programmatically and this should be created when running a workflow.

Any leads?

Link up issue:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sending-page-modification-details-of-author-on-publish-request/m-p/646679#M162159


Thanks

 

 

@arunpatidar @lukasz-m @briankasingli 

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 arunpatidar

Hi @src_aem_dev 
The path in the url is the location where the version stored, maybe you can try to get Revisions paths in java using following apis

 

https://developer.adobe.com/experience-manager/reference-materials/6-4/javadoc/com/day/cq/wcm/api/PageManager.html#getRevisions-java.lang.String-java.util.Calendar- 

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
January 24, 2024

Hi @src_aem_dev 
The path in the url is the location where the version stored, maybe you can try to get Revisions paths in java using following apis

 

https://developer.adobe.com/experience-manager/reference-materials/6-4/javadoc/com/day/cq/wcm/api/PageManager.html#getRevisions-java.lang.String-java.util.Calendar- 

Arun Patidar
kautuk_sahni
Community Manager
Community Manager
January 30, 2024

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

Kautuk Sahni