Hi smart folks, With an integration to NetSuite ...
# integrations
m
Hi smart folks, With an integration to NetSuite from a third party app, we continue to get failure for creating the item fulfillment record. This happens with and without bins set on the item record... I have an A/B test of a two line sales order to try this...same error for both lines. <Result> <id></id> <success>false</success> <errors> <error> <statusCode>USER_ERROR</statusCode> <message>Adding new line to sublist item is not allowed.</message> <type>ERROR</type> </error> </errors> </Result> What I’d like to understand is if an item has preferred bin and other bins, do I need to set the bin for Inventory Detail on the SOAP request or will NetSuite identify the bin for me?
<ItemFulfillment> <createdFrom internalId="35542"></createdFrom> <tranDate>2020-08-11T110742.205-04:00</tranDate> <packageList replaceAll="true"> <package> <packageTrackingNumber>35s4df3a2s1df65ads</packageTrackingNumber> </package> <package> <packageTrackingNumber>as35d4f3a2sd1f32ds</packageTrackingNumber> </package> </packageList> <itemList> <item> <location internalId="4"></location> <quantity>5</quantity> <inventoryDetail> <inventoryAssignmentList> <inventoryAssignment> <binNumber internalId="1335"> <name>Line-05</name> </binNumber> <quantity>5</quantity> </inventoryAssignment> </inventoryAssignmentList> </inventoryDetail> <item externalId="testitem05"></item> </item> <item> <location internalId="4"></location> <quantity>1</quantity> <inventoryDetail> <inventoryAssignmentList> <inventoryAssignment> <binNumber internalId="1047"> <name>Line-02</name> </binNumber> <quantity>1</quantity> </inventoryAssignment> </inventoryAssignmentList> </inventoryDetail> <item externalId="testitem02"></item> </item> </itemList> </ItemFulfillment>
b
use the initialize operation to get the lines correct
m
Thanks @battk
Do you know if I have to set the bin on the soap request?
b
If you have you have to do it in the ui, you have to do it in soap