Skip to Content
0
May 21, 2018 at 12:24 PM

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

93 Views

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?