javasap-commerce-cloudimpex

Update every localized boolean attribute value to TRUE


I have added a new attribute "showFlag" with type="localized:java.lang.Boolean to the itemtype VariantProduct and set default value to TRUE.but for existing variant products the value comes as n/a. enter image description here

I would like to update every existing variant products all language(localized) showFlag values as Yes.How can I do that?


Solution

  • You can update all of them with impex batch mode for fastest way.

    UPDATE Product[batchmode=true];itemType(code)[unique=true];description[en][default='test']
    ;Product;
    ;VariantProduct;