I've done what I am about to ask in different ways with success, but hopefully someone can assist.
I am trying to get the Customer Name from the Sales Header to transfer over to the Warehouse Shipment Header once you create a warehouse shipment from a sales order.
I have added a field on the warehouse shipment header, and have tried using the Get() and variations of the Find() procedures. The Find() procedures will grab a value from the sales header, but it is not grabbing the specific Customer Name I need from the related Sales Order. See below of code. This trigger is on the Warehouse Shipment page:
I'm thinking some variation of findset needs used with a repeat until possibly? If I used findfirst here it will just grab the Customer Name for the first record in the Sales Header table (obviously) which is not what I want, but maybe findfirst could be used with more logic after it..
Let me know you thoughts.
Thanks.