on 12-29-2016 11:52 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Implement the Job Restriction to achieve this on the sync Job.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could u find any solution? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
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.