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

Hot-Folder Import Customization

Former Member
0 Likes
499

I need to import a csv file for StockLevel. But before it gets imported, I need to iterate over all Products/StockLevel and set the stock level status to forceInStock. Then I need to import the csv file.

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Hello Archiesman,

you could do this via impex:

 UPDATE StockLevel[batchmode=true];warehouse(code)[unique=true,default=$warehouse];inStockStatus(code)
 StockLevel;;forceInStock

This will set the Stocklevel in the defined warehouse for every product to "forceInStock" without having to specify each and every single product first. (notice the batchmode=true)

Answers (2)

Answers (2)

Former Member
0 Likes

Perhaps this could be defined as a separate task, and executed after the header setup task.

Former Member
0 Likes

why over complicating this? what is stopping you from setting forceInStock as part of the same csv?

Former Member
0 Likes

The data I get is only for OutOfStock. That is the limitation of my ERP system from where i get the data. Any product that was outofstock earlier cannot be made in stock from the ERP. So I need to do that from my end before we run the new file everyday.