Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.35 KB

USER_EVENT_SCRIPTS.md

File metadata and controls

46 lines (39 loc) · 1.35 KB

SUITESCRIPTS

SuiteScript is the NetSuite platform built on JavaScript that enables complete customization and automation of business processes. Using the SuiteScript APIs, core business records and user information can be accessed and manipulated via scripts that are executed at pre-defined events.

USER EVENT SCRIPTS

NetSuite User Event scripts are one of the most common script types used in NetSuite. User Event scripts make it easy to automate actions when a record is loaded or saved, and creating a simple User Event script could save a lot of time.

SALES ORDER UE

sales_order_ue.ts

Sets the Sales Channel and Sales Rep fields, based on the FarApp Marketplace field value. If order was created in NetSuite the FarApp Marketplace field will be empty and NetSuite will select the Sales Rep attached to the customer record.

Marketplace Sales Rep Channel
Empty Sales Rep Wholesale
Shopify - Retail Online Store Retail
Shopify - Wholesale Partner Store Retail
Amazon Amazon Store Retail
eBay eBay Store Retail