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

How do we know pro-grammatically when the particular version of a page is activated?

Avatar

Level 9

Hi All,

If a page is more than versions and is there a way to know when that specific version of that page replicated pro-grammatically?

I have checked in the backed and not able to see replication date of that particular version.

If anyone has any idea please help me in this regard.

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Kishore,

   When programmatically replicating you need to add some property or log to distinguish otherwise no option to find between regular/programatic.

Thanks,

View solution in original post

0 Replies

Avatar

Correct answer by
Level 9

Hi Kishore,

   When programmatically replicating you need to add some property or log to distinguish otherwise no option to find between regular/programatic.

Thanks,

Avatar

Level 3

Hi Kishore@CQ,

Only, thing you can identify is the version which is last replicated.

By the below query in  Query builder will tell the location of last replication of the page:

type=cq:AuditEvent

path=/var/audit/com.day.cq.replication/<page path>

property=cq:type
property.1_value=Activate
orderby=@cq:time
orderby.sort=desc
p.limit=-1

 

Regards,

Varun Rawat