Expand my Community achievements bar.

SOLVED

Replication through code in AEM as cloud service

Avatar

Community Advisor

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

Any pointers / examples will help

 

 

 


Amanath Ullah
1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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