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

Please give me an example about ImpEx update using [batchmode =true] and not using [batchmode =true]

phatphan
Explorer
0 Likes
10,106

Can any body help me about it. I read https://wiki.hybris.com/pages/viewpage.action?spaceKey=release5&title=ImpEx+Syntax#ImpExSyntax-Attri... , but not understand

Please give me an example about ImpEx update using [batchmode =true] and not using using [batchmode =true]

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor

Example of using [batchmode=true]:

 $productCatalog=defaultProductCatalog
 $catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
 
 UPDATE Product[batchmode=true];itemType(code)[unique=true];$catalogVersion;appovalstatus(code)[default='approved']
 ;Product;

The ImpEx given above will update approvalStatus for all products in defaultProductCatalog.

Any ImpEx with header mode as UPDATE but not having [batchmode=true] with it, is an example of UPDATE without using [batchmode=true] because batchmode is by default false.