I have a user event script that runs when an item fulfillment is marked shipped.
It needs to load the created-from salesorder record of the created from transaction was a sales order. If it was a transfer order it doesn't.
But there isn't any way I can see to tell which kind of an order the item fulfillment was created from. Is there any way?
If there was a way to nlapiLoadRecord(<anytype>,recordId) then maybe I could see what the type is.