I am trying to add an order using NetSuite's .NET example code, however I get the error:
[Code=USER_ERROR] Please enter value(s) for: Location
I went back to the example and added a location to the sales order...
salesOrder.location = new RecordRef
{
type = RecordType.location,
typeSpecified = true,
internalId = "6"
};
However when I try to add the order again I get a new error:
[Code=INSUFFICIENT_PERMISSION] You do not have permissions to set a value for element location due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.
Does anyone know what I need to do either in my web service call or in NetSuite to get this working? The documentation on the NetSuite API is atrocious. I am using an Administrator account that was given access to the web service already.
The "Inventory Available" checkboxes for location are checked, which was a possible issue I found here, but checking/unchecking has no affect on getting this error.