Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.31 KB

File metadata and controls

45 lines (29 loc) · 1.31 KB

NetSuite SuiteLet w/ React Boilerplate

This is an example of how to use React in a NetSuite SuiteLet.

This SuiteLet creates a transfer order between 2 locations. It uses the RF-Smart Enhanced Item Bin Record to get the quantity needed to replenish.

Screenshot

React

Build the JavaScript bundle and upload it to the file cabinet. You will need the uploaded files url. It will be added to the SuiteLet deployment as a script param.

build

cd /react
npm run build

NetSuite SuiteScript 2.x

build

cd /netsuite
npm run build

Create Search:

  • View Criteria and Result screenshots here.

SuiteLet

  • Create a new script and deployment record for the SP_MobileWarehouseReplenishment SuiteLet Script. Customization > Scripting > Scripts > New.

  • Create a new param for Bundle URL with an id of _sp_mw1r_react_bundle_url.

  • Deploy and add the bundles file cabinet url as the script param value.

RESTLet

  • Create a new script and deployment record for the SP_MobileWarehouseReplenishmentAPI RESTLet Script. Customization > Scripting > Scripts > New.

  • Create a new param for Search ID with an id of _sp_mw1r_search.

  • Deploy and add the search id as teh script param value.