RE: How to get quantityfulfilled and quantityreceived on line level status?
Hi,
I need to get these 2 fields quantityreceived, and quantityfulfilled, In the saved search the fields are not available, however, I can find them with the field explorer but cannot use them in the transfer orders script.
Thank you in advance!
Don’t listen to those other answers. They’re spat out by chatGPT and are wrong.
Load the transfer order and use getSublistValue
or getCurrentSublistValue
with the field ids “quantityfulfilled” and “quantityreceived”. You can then compare these values against “quantity” to figure out the status of each transfer order line.
Of course, if the transfer order status is one of “Pending Fulfillment”, “Pending Receipt” or “Received”, you can already infer the status of all the transfer order lines (unlike statuses “Pending Receipt/Partially Fulfilled” and “Pending Receipt/Partially Fulfilled”)