Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Transfer Order Inventdim

(0) ShareShare
ReportReport
Posted on by

On the transfer order, the wmsLocationId is grabbed from  WMSLocationIdDefaultReceipt on the InventLocation form.  is possible to grab it from somewhere else?

We have a custom field on the transfer line that we want to grab the wmsLocationId from there

What's the best way to do that?

Thanks

  • Verified answer
    brianmaric Profile Picture
    brianmaric on at
    RE: Transfer Order Inventdim

    This seems to do the trick:

    [ExtensionOf(tableStr(InventTransferLine))]
    final class TransferOrderModsInventTransferLine_Extension
    {
    
    
        public InventDim inventDimReceive(InventTransferTable _inventTransferTable)
        {
    
            InventDim inventdim,inventDimReceive,InventDimUpdate,inventDimNew;
    
            inventdim = next inventDimReceive(_inventTransferTable);
    
            InventDimUpdate.data(inventdim);
    
            InventDimUpdate.wMSLocationId  =  this.ReceivingLocationId;
    
            inventDimNew = inventDim::findOrCreate(InventDimUpdate);
            
            return inventDimNew;      
    
        }
    
    }

  • brianmaric Profile Picture
    brianmaric on at
    RE: Transfer Order Inventdim

    My question changed to a more simple one.  For the transfer order, the wmsLocationId is grabbed from  WMSLocationIdDefaultReceipt on the InventLocation form.  is possible to grab it from somewhere else?

    We have a custom field on the transfer line that we want to grab the wmsLocationId from.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Transfer Order Inventdim

    Hi, There is a method 'initFromInventTransferTable' in InventTransferLine table. You can extend it to manipulate InventDimId.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans