Hi! I am using a Fedex API call to track my orders...
# general
j
Hi! I am using a Fedex API call to track my orders. If orders show delivered, I want the delivery date to write back into Netsuite into my "delivery date" field on my Sales Order. Does anyone have experience doing this via API calls (and/or python scripting?)?
e
The API should return a JSON response. Parse the JSON for the value that shows delivered and then use that to do a record.submitFields to the delivery date field on your sales order.
j
Thanks! Can you be a bit more specific on how to do a record.submitFields?
e
Copy code
record.submitFields({
    type: record.Type.SALES_ORDER,
    id: salesOrderInternalID,
    values: {
        'nameofyourdeliverydatefield': new Date(datedeliveredfromAPI)
    }
j
Thank you Eric!
👍 1