Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Programmatically create page version comparison link.

Avatar

Level 3

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:

SRC_AEM_DEV_0-1706109933282.png

SRC_AEM_DEV_1-1706109976629.png

 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-...


Thanks

 

 

@arunpatidar @lukasz-m @BrianKasingli 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/Pa... 



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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/Pa... 



Arun Patidar

Avatar

Administrator

@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