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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
MrShubham
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
MrShubham
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
MrShubham
Level 1

10-05-2021

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

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

180 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

169 likes

Total Posts

180 posts

Correct Reply

54 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

10-05-2021

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.

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

10-05-2021

Hey,

you can use sling jobs to schedule replication API event.

e.g. https://redquark.org/aem/day-18-sling-jobs/