Sarah
01/28/2025, 3:02 PMCeligo AI
01/28/2025, 3:02 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that setting the "Shipping Carrier" and "Shipping Method" fields via a workflow in NetSuite can be a bit tricky. Here are some insights from the threads: 1. In a workflow, you can set the "Shipping Item" field, which corresponds to the "Shipping Method" in the Customer UI. When you set this field, NetSuite automatically sets both the "Shipping Method" and the "Shipping Carrier". 2. If you're unable to find the "Shipping Carrier" field in the workflow action to "set field value", it could be due to various reasons. One possibility is that the field is not available for workflows. Another possibility is that another workflow or script is affecting this field. 3. An alternative approach is to set the default shipping carrier on the customer page. This way, you wouldn't need to set it via a workflow. You should be able to mass update all the customers fairly quickly. 4. If you're trying to update the carrier information on an Item Fulfillment via scripting and running into issues, you might want to pay attention to the URL's query parameters when the page reloads. These parameters are usually default values that you can set. Here's a code snippet from the threads that shows how to set the carrier information:
javascript
switch (Number(stlToIfFields.custbody_shipping_company)) {
case 1:
// Fedex
stlToIfFields.carrierform = 'fedex'
stlToIfFields.shipcarrier = 'nonups'
case 332:
//Fedex Freight
stlToIfFields.carrierform = 'fedex'
stlToIfFields.shipcarrier = 'nonups'
case 2:
// UPS
stlToIfFields.carrierform = 'ups'
stlToIfFields.shipcarrier = 'ups'
default:
// Any other carriers
stlToIfFields.carrierform = 'ns'
stlToIfFields.shipcarrier = 'nonups'
}
log.debug(loggerTitle, `Record saved ID: ${stlToIfFields}`)
var updateIfShippingValues = record.submitFields({
type: record.Type.ITEM_FULFILLMENT,
id: ifID,
values: stlToIfFields,
options: {
enableSourcing: false,
ignoreMandatoryFields: true
}
})
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
01/28/2025, 3:02 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860236943
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850043356
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835756242
Celigo AI
01/28/2025, 3:02 PM