i’m having this error with SOAP, any ideas? I trie...
# suitetalkapi
s
i’m having this error with SOAP, any ideas? I tried importing using workflow and it works just as fine
<platformCore:status _isSuccess_="false" _xmlns:platformCore_="urn:core_2019_1.platform.webservices.netsuite.com">
<platformCore:statusDetail _type_="ERROR">
<platformCore:code>USER_ERROR</platformCore:code>
<platformCore:message>Please enter value(s) for: Order Type</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
b
set the order type field
s
it is set…
b
how are you setting it
s
here, with or without this part it errors out the same
b
the custom field list is for custom fields
if your field is actually a custom field, find its actual script id
beyond that, the internalId attribute is not actually the internal id value of the field
its the internal id of the field, which can be used instead of the script id to identify it
the value goes in the value element, which you have left empty
depending on the type of element, the value could be set as the value of the element or could actually be an attribute
i heavily recommend getting an existing sales order to see how the field should be set
s
thanks @battk, i will tell my counterpart for this.. not really familiar with PHP, what they use. the fields seems to be not custom - you’re correct. it’s just that the order type can’t be seen on the scheme browser and just on the form itself only..
b
my personal guess is that there is custom field named order type somewhere on the transaction
there is an actual order type field, but you dont set it yourself
s
i think that is what causing this, but when using a different request without the customField, it still shows the same error. if we don’t set it on our request, how to work around it?
b
unlikely, ordertype is for other transactions like item fulfillment and is used to tell the type of the transaction it was created from
sales orders arent the one with order type
that said, the request you shared fails to set the the order type, which is the same as not setting it
which will give you the error you see if order type is mandatory
if you dont know how to set a custom field, my personal recommendation is to learn
the other approach is to make the order type not mandatory for whatever form you are working with
s
thanks @battk, appreciate the patience, will try the suggestion, fairly new to web service and we were scratching our heads as to the error..