on 2021 Sep 15 6:03 PM
I need to write an impex to update a specific field on a on item on an order.
UPDATE OrderEntry;
I see tickets to create an order entry but not update an existing order entry.
You can use the following ImpEx header if you know the entryNumber of the entry you want to update:
UPDATE OrderEntry;order(code,versionId[default=''])[unique=true];entryNumber[unique=true];fieldToUpdate
fieldToUpdate is the field you want to update.
If you do not know entryNumber but know the product code, you can use the following ImpEx header. (You need to change product catalog's name with your system's catalog name.)
$productCatalog=defaultProductCatalog
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Online'])[unique=true,default=$productCatalog:Online]
UPDATE OrderEntry;order(code,versionId[default=''])[unique=true];product(code,$catalogVersion)[unique=true];fieldToUpdate
Note that, in OOTB hybris you can add same product as different entries in cart, thus this ImpEx may give you an error stating that "More than one item is found" so first ImpEx is more likely to work without issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.