Replication through code in AEM as cloud service | Community
Skip to main content
AMANATH_ULLAH
Community Advisor
Community Advisor
May 21, 2024
Solved

Replication through code in AEM as cloud service

  • May 21, 2024
  • 1 reply
  • 787 views

I am trying to achieve Replication through code in AEM as cloud service

Any pointers / examples will help

 

 

 

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 SwetaB

Hi @amanath_ullah 

 

Replication API can be used to programatically activate pages. Get the reference of the API

@Reference
Replicator replicator; replicator.replicate(session, ReplicationActionType.ACTIVATE, pagePath);

 

Refer this 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/replication#replication-api 

1 reply

SwetaBAccepted solution
Level 4
May 21, 2024

Hi @amanath_ullah 

 

Replication API can be used to programatically activate pages. Get the reference of the API

@Reference
Replicator replicator; replicator.replicate(session, ReplicationActionType.ACTIVATE, pagePath);

 

Refer this 

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/replication#replication-api