This topic contains 2 replies, has 0 voices, and was last updated by chanarbon 7 years, 8 months ago.

  • Author
    Posts
  • #5917

    zcheng100

    How can I set the shipcarrier to USPS/More on a sales order using SuiteScrip

    salesOrder.setFieldValue(‘shipcarrier’, ‘noups’);

    salesOrder.setFieldValue(‘shipcarrier’, ‘nonups’);

    UPS is always selected.
    This is a cached copy. Click here to see the original post.

  • #5918

    chanarbon

    zcheng100

    Based on the Records Browser, shipcarrier is a sublist field so you should use Sublist APIs on setting it like .setLineItemValue() instead of setFieldValue(). Also the field is a select type field which means more or less you should be using the internal id representation for your Carrier. Please refer to the Records Browser (https://system.netsuite.com/help/hel…alesorder.html)


    zcheng100 replied on 02/27/2017, 07:56 AM: Thanks, problem solved

  • #5919

    chanarbon

    zcheng100 ,

    You can first do a getLineItemValue() to the field by testing it to the UI to get the value of the nonups value.


    zcheng100 replied on 02/27/2017, 08:05 AM: could you help me with the problem:

    Multiple Shipping Routes, 2 line items, same address.

    how to assign 2 line items to same ship group?

You must be logged in to reply to this topic.