I am trying the following code in a UE script and ...
# suitescript
m
I am trying the following code in a UE script and getting this error: {"name":"SSS_MISSING_REQD_ARGUMENT","message":"search.lookupFields: Missing a required argument: id"}. The search.lookupfields is returning the correct value though. Anyone know what I am doing wrong?
var shipToParentLookUp = search.lookupFields({
                
type: search.Type.CUSTOMER,
                
id: cust,
                
columns: ['parent']
              
});
            
var shipToParent = shipToParentLookUp.parent[0].value;