web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

I want to get warehouse address

(0) ShareShare
ReportReport
Posted on by

Dear all,

I have a problem, I want to get warehouse address in this method (LogisticsEntityPostalAddressView).Address with Primary=Yes and Purpose=Delivery. But I don't know how to do. Can you guys help me. Please Comment your explain.  thank you very much.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Nguyen,

    Can you tell us more about your requirements ?

  • Community Member Profile Picture
    on at

    Hi ievgen,

    I mean that: I want to get warehouse address in warehouses and I send transferID,voucherID, TransDate and UpdateType to report and then I want to get warehouse address with primary=yes and purpose= delivery. You understand?

  • Mea_ Profile Picture
    60,284 on at

    Hi Nguyen Van Tai,

    You can try next method:

    LogisticsLocationEntity::findPostalAddress();

    where first parameter will be InventLocation record.

    Or simply 

    InventLocation.logisticsPostalAddress();


  • Community Member Profile Picture
    on at

    Diachi.png

  • Mea_ Profile Picture
    60,284 on at

    Thanks for screenshot, could you kindly check my suggestions in previous post ?

  • Community Member Profile Picture
    on at

    I don't understand. could you explain more about this?

  • Mea_ Profile Picture
    60,284 on at

    What exactly is not clear for you ?

  • Community Member Profile Picture
    on at

    I want to get address from LogisticsEntityPostalAddressView.Address.

  • Mea_ Profile Picture
    60,284 on at

    Could you share code you have ? If you have inventLocationId, for example, you can find inventLocation record and then you can call InventLocation.logisticsPostalAddress() to get Address, but I have not idea what code you have so It's hard to help you.

  • Community Member Profile Picture
    on at

    private void insert_BHS_PhieuNhapKhoNoiBo(

       InventTransferJour     _inventTransferJour,

       InventTransferJourLine _inventTransferJourLine,

       InventDim              _inventDim,

       CompanyInfo            _companyinfo)

    {

       InventTransferLine inventTransferLine;

       TaxInformation_IN  taxInformation;

       InventLocation      inventLocation;

       _BHS_PhieuNhapKhoNoiBo.ToAddressName        = _inventTransferJour.ToAddressName;

       _BHS_PhieuNhapKhoNoiBo.TransferId           = _inventTransferJour.TransferId;

       _BHS_PhieuNhapKhoNoiBo.TransDate            = _inventTransferJour.TransDate;

       _BHS_PhieuNhapKhoNoiBo.InventLocationIdFrom = _inventTransferJour.InventLocationIdFrom;

       _BHS_PhieuNhapKhoNoiBo.InventLocationIdTo   = _inventTransferJour.InventLocationIdTo;

       _BHS_PhieuNhapKhoNoiBo.VoucherId            = _inventTransferJour.VoucherId;

       _BHS_PhieuNhapKhoNoiBo.FromAddress          = _inventTransferJour.fromAddress();

       _BHS_PhieuNhapKhoNoiBo.ItemId               = _inventTransferJourLine.ItemId;

       _BHS_PhieuNhapKhoNoiBo.QtyReceived          = _inventTransferJourLine.QtyReceived;

       _BHS_PhieuNhapKhoNoiBo.inventUnit           = _inventTransferJourLine.inventUnit();

       _BHS_PhieuNhapKhoNoiBo.LocationName         = this.getPostalAddressByType(_DirPartyTable.RecId, LogisticsLocationRoleType::Delivery).Address;

       _BHS_PhieuNhapKhoNoiBo.UnitPrice            = _inventTransferJourLine.UnitPrice_IN;

       _BHS_PhieuNhapKhoNoiBo.ItemName             = _inventTransferJourLine.itemName();

       _BHS_PhieuNhapKhoNoiBo.Name                 = DirpartyTable::findRec(_companyinfo.RecId).Name;

       _BHS_PhieuNhapKhoNoiBo.Address              = LogisticsPostalAddress::findByLocation(CompanyInfo::find().postalAddress().Location).Address;

       _BHS_PhieuNhapKhoNoiBo.FromAddressName      =  I want to get warehouses address here.

       _BHS_PhieuNhapKhoNoiBo.insert();

    }

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans