Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Update ItemFulfillment take too long
fils[0].setShipStatus(ItemFulfillmentShipStatus._packed);
fils[0].setPackageFedExList(addFedExPackage(weightField.g etText(),lengthField.getText(),heigthField.getText (),widthField.getText()));
WriteResponse res2 = _port.update(fils[0]);
if (res2.getStatus().isIsSuccess()) {
//Success
}
public ItemFulfillmentPackageFedExList addFedExPackage(String weight,String length,String height, String width){ // ups package
ItemFulfillmentPackageFedExList FedExPackageList = new ItemFulfillmentPackageFedExList();
ItemFulfillmentPackageFedEx[] pkg = new ItemFulfillmentPackageFedEx[1];
pkg[0] = new ItemFulfillmentPackageFedEx();
pkg[0].setPackageWeightFedEx(Double.parseDouble(weight)) ;
pkg[0].setPackageLengthFedEx(Math.round(Double.parseDoub le(length)));
pkg[0].setPackageHeightFedEx(Math.round(Double.parseDoub le(height)));
pkg[0].setPackageWidthFedEx(Math.round(Double.parseDoubl e(width)));
FedExPackageList.setPackageFedEx(pkg);
return FedExPackageList;
}
Itemfulfillment is created once workers finish picking.
Here is my code to update item fulfillment from "picked" to "packed" with dimension and weight.