BPM MscShpHd (Misc Shipment Head) no data in Pre-Processing?

Why doesn’t pre-processing on Misc Shipment Entry method directive contain any data?

I did a trace log and found that I want to fire a check when users mark a Misc Shipment closed. Epicor calls the BPM Erp.MiscShip.CloseCarton as I discovered from the TraceLog.

When I try to do a Pre-processing BPM, because I want to do a check then prevent closing if certain criteria is not met, I try to see if there is any data and there’s none to work with. It doesn’t make sense because trace log says there is.

This simple test BPM

Shows up when I close with no data not even the pack ID:

The same BPM written on the Post condition has all the data. However by the time I get to the post processing it’s too late, the record is marked closed. I want to prevent the marking of the record closed on the pre, but Epicor’s not giving me any data to work with.

This is how I got around it inside the BPM:

image

iPackNum was in the method call as a parameter so we can use that to get the actual record from the database to work with.