Hello guys. Trying to integrate with netsuite and ...
# suitetalkapi
s
Hello guys. Trying to integrate with netsuite and currently I cannot send a successful inventoryAdjustment request through postman. This is the one of the error's I am getting: "Error while accessing a resource. You have entered an Invalid Field Value 1074 for the following field: item." (I made sure that this is the id). Perhaps my request's body is wrong. Any help will be much appreciated.
b
the usual answer is to make the same record in the ui and set the exact same fields you set in the ui
use the same user/role that your integration uses so you are under the same permission and classification restrictions
s
thank you for the reply, this is my body for the request (it doesn't work). {     "inventory": {         "id": "3679539",         "AdjustmentAccount": {             "id": "1371"         },         "memo": "blah blah",         "items": [             {                 "subsidiary": {                     "id": "1",                     "refName": "Trafilea Group Inc."                 },                 "item": {                     "id": "1074"                 },                 "adjustQtyBy": 33.0,                 "location": {                     "id": "407"                 }             }         ]     } }
this is the error: "detail": "Error while accessing a resource. You have entered an Invalid Field Value 1074 for the following field: item."
c
Did the UI test succeed?
s
if you are asking if I can create a new inventory adjustment through the ui then the answer is yes.
b
that is a very weird looking body
to see what your request should look like
a quick glance at the body suggests that you are mixing up body fields and sublist fields
and are guessing at what the field ids should be
s
I went with your directions (using swagger) I tried to post a new inventory adjustment and I'm still getting the same error: "Error while accessing a resource. You have entered an Invalid Field Value 1074 for the following field: item."
this is the body that I used: {     "id": "3679539",     "inventory": {         "items": [             {                 "quantityOnHand": 66,                 "adjustQtyBy": 21,                 "avgunitcost": 99,                 "newQuantity": 357,                 "memo": "History is written by the victor",                 "item": {                     "id": "1074"                 },                 "location": {                     "id": "407"                 }             }         ]     } }
b
make a list of the fields that you set in the ui and the internal ids for the select type fields
set those same fields and the same values
I heavily recommend not trying to set fields that you didnt set in the ui
im basically saying the same thing again since i can tell that you are missing at least one field that is mandatory in the ui
and you are probably missing another depending on which edition of netsuite you have running
s
thank you for your help, I managed to post a new inventory adjustment. but I am having some problems with item fulfillment. from my understanding when I use a transform request on a salesorder it gets picked(this is what happened). if this is true what requests do I need to send in order to change it to packed and then and then shipped.
b
the shipping status is another field that you set
s
Hello again friend. I am trying to understand the process for item fulfillment; correct me if I'm wrong but If the advanced shipping feature is enabled, fulfillment and invoicing are two independent processes and I first need to transform the salesOrder to a invoice and then itemFulfillment.
b
different features and preferences control the order in which you can bill and fulfill