Attempting to transform an intercompany sales orde...
# suitescript
t
Attempting to transform an intercompany sales order to fulfillment and getting an error: You must have at least one valid line item for this transaction. Note that this is only on record.transform, haven't tried to save it yet
var a = record.transform({"fromType":"salesorder","fromId":"7378872","toType":"itemfulfillment","isDynamic":true});
b
you get the generic transform advice
click the fulfill button in the ui and pay attention to the url of the fulfillment
parameters in the url are defaultValues that you may have to set in the transform
👍 1
💯 2
m
@toltmanns you'll want to include default value for inventorylocation. ex: defaultValues: { inventorylocation: locationId }
stanley 1
t
Thanks guys, I did find the suiteanswers article which was exactly my issue with inventory location