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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Address XML mapping seems to defy logic? i.e. ShipToAddr1, ShipToAddr2 (etc)

(0) ShareShare
ReportReport
Posted on by 470

Does anyone know a bit more on the logic of the XML data on addresses for reports as it just uses line1, line2, line 3 etc and you have no control on what data goes in? i.e. 

  • ShipToAddr1 (Name)

  • ShipToAddr2 (Contact)

  • ShipToAddr3 (Address)

  • ShipToAddr4 (Address 2)

  • ShipToAddr5 (City)

  • ShipToAddr6 (Postcode)

  • ShipToAddr7 (Address [from account])

  • ShipToAddr8 (Country Region Code [from account])

I guess the simple answer is to remove 7 & 8 but if i get a longer/shorter address it'll either still add wrong info or drop the postcode?

Is there any way to explicitly just add "Address" "Address 2" "City" "Postcode" as it makes no sense to do it like that as you cannot control the data you want to appear?

  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at

    Well it depends on the kind of address and country. This is something you can setup in the Countries table/page:

    countries.png

    When the report generates the dataset, there's code that formats the addresses using the codeunit "Format Address":

    formatadr.png

    So simply changing the layout and removing certain fields will have different results depending on the country the customer is from.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
11manish Profile Picture

11manish 9 Super User 2026 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 1 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans