How to add Inventory HandleBars in NetSuite- Wafair custom flow.

In Wayfair for adding the inventory details there are some specific input types are available.

The available input types are,

supplierIdInt!The id of the supplier/warehouse that has this product.
supplierPartNumberString!The part number of the product.
quantityOnHandInt!The number of units on hand and still available for sale.
quantityBackorderIntThe number of backordered units.
quantityOnOrderIntThe number of units allocated to open orders.
itemNextAvailabilityDateStringThe next time this product will be available.
discontinuedBoolean = falseWhether or not the product has been discontinued.
productNameAndOptionsStringThe name of the product along with any options to be submitted for it.

Create a search in NetSuite to get the inventory details and map the field to any of the inventory input types which is available.

For example, If we have to map a value to the Quantity on order values then the mapping will be added as follows:

“quantityOnOrder” : {{#compare record.value “>=”0}} “{{record.value}}” {{else}} 0 {{/compare}}

here the value will be data which is obtained from the saved search.

Leave a comment

Your email address will not be published. Required fields are marked *