Price Levels & Download Items


The “Download Item” type in NetSuite is not available for CSV Import operations. Recently, I needed to update around 800 Download Items so I created a script to do the job for me. I’m a big fan of Map Reduce scripts because of how discreetly they are executed, just one single operation at a time.

I begin by creating an array of all my parts with their new prices stored as objects. It’s just a large array of objects.

This array of objects is declared in the script body, is accessible to the getInputData function, and is returned by the getInputData function.

It just returns the hard coded data object you build as your price list.

In the map function we do a lookup to get our item id, then we update the record’s prices sublist with the new price.