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

Can we automate promotion?

Former Member
0 Kudos
372

Hi, Instead of creating promotions from backend is there any other approach to create thousands of promotions and vouchers. Thanks!

Accepted Solutions (0)

Answers (3)

Answers (3)

vinay_malempati
Active Participant
0 Kudos

You can also try Rest api to create the promotion source rules and set the corresponding actions and conditions as json, and then use rulemaintenance service to publish them one by one.

From my experience if number of promotions are high(More than 1000 ) not just publishing , the performance of the cart calculation and promotions evaluation will be very slow.

Former Member
0 Kudos

Hi Jakub, Actually requirement is how to bulk load or is there any approach to load nearly millions promotion from an existing system to a new Hybris commerce system

Former Member
0 Kudos

Impex approach should be useful in this situation - you can see this question to know how to export existing promotions: https://answers.sap.com/questions/12766948/how-to-export-promotion-templates-or-promotion-rul-1.html

However the amount of the promotions might cause some problems (especially for publishing them later on).

vinay_malempati
Active Participant
0 Kudos

You can also try Rest api to create the promotion source rules and set the corresponding actions and conditions as json, and then use rulemaintenance service to publish them one by one.

From my experience if number of promotions are high(More than 1000 ) not just publishing , the performance of the cart calculation and promotions evaluation will be very slow.

Former Member
0 Kudos

Hi Mohd,

You could look into creating promotions using impex.
You can look up syntax for this here: https://answers.sap.com/questions/12762963/promotions-using-impex.html
Publishing promotions is described in this post: https://answers.sap.com/questions/12759003/how-to-publish-a-promotion-rule-60-using-impex-scr.html

Hope this helps,