Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Shipping an ItemFulfillment
I am trying to mark an ItemFulfillment as shipped with a package. The ItemFulfillment record is initially created and picked using WMS Lite RF Mobile Screen.
It is updating the Status field, but it seems to be adding a default package (0.05lb, no description or tracking) instead of the package I specified. What am I doing wrong?
Here is my code (C#):
//curShipment is an EasyPost shipment after purchasing postage. //it contains relevant information about the package ItemFulfillmentPackage package = new ItemFulfillmentPackage(); package.packageWeight = curShipment.parcel.weight; package.packageWeightSpecified = true; package.packageTrackingNumber = curShipment.tracking_code; package.packageDescr = "H2OShip Shipment"; ItemFulfillmentPackageList packages = new ItemFulfillmentPackageList(); packages.package = new ItemFulfillmentPackage[] { package }; ItemFulfillment fulfillmentUpdate = new ItemFulfillment(); fulfillmentUpdate.internalId = curFulfillment.internalId; fulfillmentUpdate.shipStatus = ItemFulfillmentShipStatus._shipped; fulfillmentUpdate.shipStatusSpecified = true; fulfillmentUpdate.packageList = packages; SetNetsuitePrefs(); // Sets preferences and authenticates, similar to the ERP example code WriteResponse response = await System.Threading.Tasks.Task<SearchResult>.Run(() => { return nsService.update(fulfillmentUpdate); }); 0