Transfer Order PartDtl Parameters in Function

Hi All,

I am trying to create a function that will unallocate/unreserve transfer orders that have not been fully processed by the end of the day. We are noticing these are creating additional PO suggestions after MRP runs.

I am trying to test with a specific TFOrderNum and TFOrdLine, but am unsure what to use for the PartDtl parameter within the Erp.OrderAlloc.GetListOfTransferOrders invoke method.


I appreciate the help!

Best,
Steven

Try the expression String.Empty instead of the “”
Also, I don’t think something like “TFOrdNum=xxx” would work. Try calling the method from Epicor while trace is on and see what clauses it uses.

Those whereClause parameters don’t look too fun… might try setting them to “1=1” or “1=0” to troubleshoot.

Also, I’ve had better luck with functions by first creating them as a BPM triggering off something benign, such as UD codes. The Display Message widget works and you can troubleshoot much faster than by running the functions and hoping to find a useful error message in system monitor.