The NetSuite Workflow Action Script permits you to add more actions as compared to the point-and-click SuiteFlows. Using these scripts, you can easily execute specific with the help of SuiteScript APIs that are currently available in the market. For instance, creating records and manipulating sub-lists.
Triggers an email based on item fulfillment method.
The following Variables need to be set. These could have been added via script parameters but since this script will not get updated it was unecessary.
Shipping Methods need to be set.
const curbsidePickup = '11111';
const inStorePickup = '22222';
const willCall = '333333';
Internal Ids for email recipient and bccList will need to be set, bccList expects an array of internal ids.
The email subject contains a custom transaction body field custbody_sp_order_number
, the script will fail if this is field does not exist.
This script adds a product to all eBay Orders based on order item quantity
This action script will set a field on a transaction based on the given requirements
- Requires Tracing (
custbody_sp_req_tracing
)- ID: custbody_sp_req_tracing
- Type: Checkbox
- Product Tracing Quantity (
custscript_sp_prod_tracing_qty
)- ID: custscript_sp_prod_tracing_qty
- Type: Integer Number
Applies to Transaction type Sales Order