Transform a Sales order line to an Item Fulfillment via REST Webservices and add inventory details and inventoryAssignment
I am trying to transform a single line from a Sales Order to an Item Fulfillment and add the inventory assignment. I am getting the error “Error while accessing a resource. You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.”
Here is my code.
{
“entity”: “260596”,
“subsidiary”: “14”,
“location”: “1125”,
“department”: “524”,
“custbody_custbody_bookingid”: “1008”,
“custbody_tjinc_sta_booking_num”: “2302400470”,
“item”: {
“items”:
[
{
“line”: 47,
“custcol1”: 47,
“custcol_tjinc_inv_adj_line_id”: 47,
“custcol_bookingsublistlineid”: 40,
“custcol_exportbookingid”: “1008”,
“department”: “524”,
“itemreceive”: true,
“location”: “1125”,
“quantity”: 26.30837,
“units”: “8”,
“custcol_containerweight”: “8380”,
“custcol_custcol_containernumber”: “CSLU6057691”,
“custcol_custcol_sealnumber”: “5260893”,
“custcol_tjinc_bale_count”: 66,
“custcol_tjinc_sta_lot_no”: “FG-1”,
“rate”: 457.0,
“inventoryDetail”: {
“inventoryAssignment”: {
“items” : [
{
“issueInventoryNumber” : “59259”, //Internal ID of Lot Number based on items.
“inventoryStatus” : “1”,
“quantity” : 26.30837
}
]
}
}
},
{
“line”: 51,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 55,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 59,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 63,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 67,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 71,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 75,
“itemreceive”: false,
“location”: {“id”: “1125”}
},
{
“line”: 79,
“itemreceive”: false,
“location”: {“id”: “1125”}
}
]
}
}



