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

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

 

 

 

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