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.
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
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.