Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Can we invoke replication api with a specific time content needs to replicate?

Avatar

Level 1

My requirement is to invoke replication API for a content/asset at a particular time.

As we have an option on the AEM UI for Publishing or unpublishing content later at a scheduled time.

MrShubham_0-1620643853481.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @MrShubham,

 

You can use the Scheduler [AEM Event handling mechanism] to achieve this.

 

Sample scheduler code: https://medium.com/adobetech/handling-sling-schedulers-in-aem-as-a-cloud-service-cb59d5e59e9

Sample replication code: https://aem.redquark.org/2018/10/day-19-replication-api-in-action.html

Utilize these examples to achieve your use case.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @MrShubham,

 

You can use the Scheduler [AEM Event handling mechanism] to achieve this.

 

Sample scheduler code: https://medium.com/adobetech/handling-sling-schedulers-in-aem-as-a-cloud-service-cb59d5e59e9

Sample replication code: https://aem.redquark.org/2018/10/day-19-replication-api-in-action.html

Utilize these examples to achieve your use case.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.