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)

How to get the vendor complete vendor address in the purchase order report

(0) ShareShare
ReportReport
Posted on by 1,737

i want to display the complete vendor address in the purchase order report,

i am writing the below code i am getting only some address only.

VendorAddress   = strRemoveCr(VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().Street+', '+
                                                      LogisticsAddresssCity::findRecId(VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().CityRecId).Description+', '+
                                                      VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().DistrictName+', '+
                                                      LogisticsAddressState::find(VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().CountryRegionId,VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().State).Name+', '+
                                                      LogisticsAddressCountryRegionTranslation::find(VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().CountryRegionId).ShortName+', '+
                                                      LogisticsAddressZipCode::findRecId(VendTable::find(PurchTable::find(purchId).OrderAccount).postalAddress().ZipCodeRecId).ZipCode);


can any one know about this please help me.

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    address is saved in LogisticsPostalAddress.Address

    when it is saved it is saved in format which has been setup in the system.

    if you wan to get complete address w.r.t a vendor or PO, following line should return you complete address

    VendTable.postalAddress().Address

    as you have said, you are unable to get complete address, so you need to define your assumption for complete address and what is missing from that

  • srinivas pamidi Profile Picture
    1,737 on at

    can you please explain me briefly.

  • srinivas pamidi Profile Picture
    1,737 on at

    Please see this screen shots_2D00_1.png

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    there is a table named as LogisticsPostalAddress

    this table saves all parts of address(city, country street etc). also it saves combination of all parts (Street+City+Country etc.)

    the combination of all parts of address is saved into Address(field) of LogisticsPostalAddress(Table)

    Now Kindly specify your definition of complete address and also specify what is missing at your end

  • srinivas pamidi Profile Picture
    1,737 on at

    actually it appears in original preview but it's not working on the purchase order print button

  • srinivas pamidi Profile Picture
    1,737 on at

    can you please explain me relating to above code

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I am sorry, you code is in your hand, you can debug it to see what's missing and you can specify here what missing so we may help you in that,

    as you said it appears in original preview but it's not working on the purchase order print button, so you need to debug it and find out the reason.

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