cancel
Showing results for 
Search instead for 
Did you mean: 

How to Sync only the Content pages which are in Ready for Sync status?

former_member813285
Discoverer
0 Kudos
159

CatalogVersionSyncJob synchronizes all modified pages, but I would like to synchronize only the pages whose displayStatus is changed to "Ready for Sync". This can't be achieved by using SearchRestriction because displayStatus is a dynamic attribute(OOTB). Could anyone provide solution for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

adiputera
Active Participant
0 Kudos

I think you should create custom function for that

The easiest way IMO is to create new cronjob to get only pages whose catalogVersion is in Staged and approvalStatus is check, then you can re-filter again in java code to get only pages whose displayStatus is READY_TO_SYNC, because as you say, displayStatus is a dynamic attribute so you can't query that.

After you create cronjob, you can put search restriction in cronjob if the person logged in should not have access to other cronjobs.