on ‎2021 Jan 20 6:42 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.