cancel
Showing results for 
Search instead for 
Did you mean: 

Product Sync: Sync only products in approved status to online version.

0 Kudos

We are using Hybris 6.2 version. We want only the products in approved status to be synchronized during catalog sync. We tried with the "SearchRestriction" but it did not seem to work. Can anyone please help to customize the sync process to sync only the approved products during the catalog sync?

Accepted Solutions (0)

Answers (4)

Answers (4)

priyanka_gupta2692
Participant
0 Kudos

Create new SearchRestriction by following below impex.

INSERT_UPDATE SearchRestriction;code[unique=true];name[lang=en] ;query;restrictedType(code);active[default=true];principal(uid)[default='catalogSyncManager'];generate[default=true];

;MyRestriction;My Restriction;{item.approvalStatus} IN ({{ SELECT {ArticleApprovalStatus.pk} FROM {ArticleApprovalStatus} WHERE {ArticleApprovalStatus.code} = 'approved' }});Product;

Principal(uid) should be same as sessionUser in "CatalogSynchJob". It is present in AdvancedAttribute tab.

VinayKumarS
Active Contributor
0 Kudos

Implement the Job Restriction to achieve this on the sync Job.

Former Member
0 Kudos

Create a new sync configuration with only approvalStatus attribute in Sync attribute. You can test it with existing catalogSync job. Go to System>Multithreded Synchronization>Select existing catalog sync job and disable all the sync attribute except approval State and run the job. Hope it helps

0 Kudos

Could u find any solution? Thanks.