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

Announcements

News and Announcements icon
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,668 Super User 2026 Season 1 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,668 Super User 2026 Season 1 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,668 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans