Creation of packlines against newly created ShipHead

Hello everyone,

I have a requirement to create Shipment records from Order Release. I have two methods, one that creates the ShipHead and another ShipDtl. Both methods are meant to be executed simultaneously and the packlines to be created against the newly created PackID. I am having a problem with grabbing the created PackID to use to create the packlines. I need help with any possible way of grabbing the created PackID. Thanks.

I have a single Data BPM that creates both the ShipHead and ShipDtl at the same time triggered by a checkbox on OrderHed, the PackID is set at the start by finding the highest used PackID and adding 1.