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

How to insert data for configuring promotions(conditions,action and its associated products) instead doing it from backoffice.

0 Likes
318

I need to create promotions data for 600 products. I found below impex INSERT_UPDATE PromotionSourceRule;code[unique=true] ;priority;maxAllowedRuns;stackable[default=false];ruleGroup(code) ;conditions ;actions;website(Identifier)[default=$defaultPromoGrp] ;order_threshold_free_gift;600 ;1 ;true ;orderPromotionRuleGroup ;"[{""children"":[],""parameters"":{""value"":{""type"":""Map(Reference(Currency), java.math.BigDecimal)"",""uuid"":""d504e38b-2abe-4ff2-a962-02f2eb3b9146"",""value"":{""USD"":500}},""operator"":{""type"":""java.lang.Enum(de.hybris.platform.ruledefinitions.AmountOperator)"",""uuid"":""0cc4f793-b83d-4e5b-990a-1b8207bd8ff9"",""value"":""GREATER_THAN_OR_EQUAL""}},""definitionId"":""y_cart_total""}]";"[{""parameters"":{""product"":{""type"":""ItemType(Product)"",""uuid"":""70b1c6ce-9626-4801-8956-3b51345c2b5c"",""value"":""1687508""},""quantity"":{""type"":""java.lang.Integer"",""uuid"":""4debb80d-8d1c-4ca5-be0d-ab65e7c9b17d"",""value"":1}},""definitionId"":""y_free_gift""}]";

What is UUID here?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Thanks Venki. But Here i would like to configure a free gift action like "buy 1 x get 1 y" with impex instead from backoffice. Could you please suggest me here