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

How to make a condition check before synchronization

Former Member
0 Likes
241

Please advice what is the best way to implement such a thing: How to make a check after pressing SYNC button (in a product card or during group synchronization): if there are any unapproved products ? And if there are any, then show up appropriate blocking message and cancel synchronization attempt.

Accepted Solutions (0)

Answers (1)

Answers (1)

sduvvuri
Explorer
0 Likes

For products synchronization, performItemSynchronization(...) method from DefaultItemSynchronizationService class takes the lead. It in turn calls DefaultCatalogSynchronizationService.performSynchronization(...) method which you can customize in order to achieve your goal of checking the results. Here after you get the SyncResult you can check it and delegate the process however you need it to be.

Reference : https://help.sap.com/viewer/86dd1373053a4c2da8f9885cc9fbe55d/6.6.0.0/en-US/f5d341eec9e14aaea0ab018ea...