cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to do content catalog sync automatic only for modified items ?

former_member632827
Participant
0 Likes
719

Hello Expert,

I want to do a content catalog sync automatic only for modified items? I have created a cronjob with existing sync jobs, but it's not picking the items. Could you help me with how can achieve this?

INSERT_UPDATE CatalogVersionSyncCronJob;code[unique=true,path-delimiter=!]];job(code);sessionLanguage(isocode); ;sync electronicsContentCatalog:Staged->Online;sync electronicsContentCatalog:Staged->Online;en

INSERT_UPDATE Trigger; cronjob(code)[unique=true,path-delimiter=!]; active;relative; cronExpression ; sync electronicsContentCatalog:Staged->Online ; true ; true ; 0 0/5 * 1/1 * ? *

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

crescenzorega
Active Participant
0 Likes

Hi,

you could create an Validate Interceptor which initiates the synchronization of the catalog.

Obviously there are some aspects to consider on the performance side, in case you save 5 objects the synchronization would be started 5 times. In addition, the concept of the double version of the catalog serves to prevent errors

Regards,

Crescenzo Rega

former_member632827
Participant
0 Likes

Answering myself.

I have checked the OOTB sync queries.Its picking only modified items.

Doesn't work properly if you create a crone job for sync jobs. You can create triggers at the job level, then it will be work properly.

former_member813285
Discoverer
0 Likes

Hi,

May i know how to create a cron job which syncs only content pages with Ready for Sync status.

Thanks in advance!!