Using the API, can you advise the best approach on how to pass a PROJECT NAME and TAG NUMBER and return all the related SHIPMENT NUMBERS, SHIPMENT PIECE COUNT, and SHIPMENT WEIGHT? I am hoping not to iterate through all the shipments to find the related ones, but any suggestions are welcomed.
To do this you can use the ShipmentList. First grab the scaffold tag that you want. On the scaffold tag there is a RelatedStockingLocation object which you pass the ID into the shipment list
' Get scaffold tag object so that we can get the stocking ' location id Dim tag As ScaffoldTag = ScaffoldTag.GetScaffoldTag(tagItem.ScaffoldTagID) ' Shipment list Dim shipments As ShipmentList = ShipmentList.GetShipmentList(tag.RelatedStockingLocation.StockingLocationID)
I know this is an old post, but I have never been able to get this to work.
Can you please advise how, based on a passed job name and tag number, how I can extract the total weight for ONLY delivery shipments?
Use the above list of shipments, and then loop through all of them to determine the type. There’s a property the shipment that you can tell if it’s a delivery, return, or transfer. For transfer you’ll need to compare the ToStockingLocation ID with the current job to see if it is shipped to or from the job.