ANS-1163 · WEB SERVICES & INTEGRATIONS

How to Automatically Set Delivery Confirmation for NetSuite Shipping Labels?

Automate delivery confirmation options for shipping labels generated in NetSuite, including signature requirements.

Short answer

To automatically set delivery confirmation for shipping labels in NetSuite, enable 'Shipping Label Integration' and create a shipping item. A User Event script on the Item Fulfillment record can then update the package sublist's delivery confirmation field with the desired value, ensuring consistent application of shipping preferences.

Scenario

Organizations utilizing NetSuite's shipping label integration often need to enforce specific delivery confirmation requirements, such as a signature, for all packages. Manually selecting these options for each item fulfillment can be time-consuming and prone to error. A solution is required to automate this process, ensuring compliance and efficiency.

Solution

To implement automatic delivery confirmation, follow these steps:

  1. Enable 'Shipping Label Integration' by navigating to Setup > Company > Enable Features.

  2. Create a shipping item with 'Shipping Label Integration' checked.Once these prerequisites are met, a User Event script deployed on the Item Fulfillment record, triggered on beforeSubmit, can be used. When an item fulfillment is created, the package sublist is pre-populated with basic weight information. The script will then update the 'Package Confirmation' (for USPS) or 'Delivery Confirmation' (for FedEx) field value.The sublist and field IDs vary between FedEx and USPS integrations. The specific numerical internal IDs for delivery confirmation options may vary depending on the NetSuite account configuration, but the descriptive options remain consistent.For FedEx:Sublist ID: 'packagefedex'Signature field ID: 'deliveryconffedex'Possible values include:'Signature Required' (e.g., 5)'Deliver Without Signature' (e.g., 4)'Non Selected' (e.g., '')For USPS:Sublist ID: 'packageusps'Signature field ID: 'deliveryconfusps'Possible values include:'Delivery Confirmation' (e.g., 6)'Signature Confirmation' (e.g., 7)The following examples demonstrate how to set these values using SuiteScript 1.0 functions. While these functions are considered legacy, the underlying logic for interacting with sublists remains relevant for understanding the process. If multiple package lines exist, the script would need to iterate through them; the examples below illustrate the basic concept for a single line.FedEx Example:

nlapiSelectLineItem('packagefedex', 1);nlapiSetCurrentLineItemValue('packagefedex', 'deliveryconffedex', 5);nlapiCommitLineItem('packagefedex');

USPS Example:

nlapiSelectLineItem('packageusps', 1);nlapiSetCurrentLineItemValue('packageusps', 'deliveryconfusps', 7);nlapiCommitLineItem('packageusps');

Expert NetSuite Support

Need help with this NetSuite issue?

Web Services & Integrations consulting and configuration support

Talk to a consultant