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)

Enable Address Fields from RU Region Settings.

(0) ShareShare
ReportReport
Posted on by

We have a new requirement in saving customer addresses. We need to save building number and apartment number along with the district of the customers. From what we found that these fields already exist however they are in Russian region settings. How to enable them?

Also what what we have understood that a change in address format will be required so that the format having building number will be displayed everywhere. Will this chnage in format show everywhere? Like all customer grid, invoices and reports?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It will get enabled if you change your Legal entity address' country region to Russia.

    If you would like to use those fields without changing your country, then you have to remove the CountryRegionCode property on the table fields/form controls. It is also possible that it is tied to a Licese Configuration Key, which you could also remove.

    Also if there is connected business logic to those fields, then you need to check the code as well, since they might be doing country code validation around the code blocks too.

    Address format mapping is automatic, once you have access to the fields, you should be able to pull it in to your address format setup.

  • Community Member Profile Picture
    on at

    Hi Vilmos,

    Thanks for your reply. Its true I cannot change the region of my legal entity as its not in Russia.

    I Have added the two fields of Apartment and Building to the form. I went through the fields in their tables LogisticsPostalAddress the fields have no RU in CountryRegionCode. However the extended data type that they used had RU as a CountryRegionCode so I removed it.

    Now the problem is when I create a new customer and add all the fields, the address displayed in the customer details is still in the old format. Building number and apartment numbers are not shown. 

    Unret.PNG

    When I edit the address I have all the data I had inserted.

    Edit-Add.PNG

    I have also changed my organisation address format to show apartment and building.

    Format-Address.PNG

    I noticed something else too, I earlier had a column which used to show customer address in all customers grid. Now after this change its showing unretrieved.

    Unret.PNG

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Close the AX client, then delete the *.AUC files in your user profile (AppData\Local). It might be an incorrectly cached value from the AOT, let's see if it works afterwards.

  • Community Member Profile Picture
    on at

    The unretrieved issue worked, however the format is still the old one.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    I am afraid you need to read the code then, most likely it is in \Data dictionary\Maps\LogisticsPostalAddressMap\formatAddress, and similar methods, where they check country region ISO codes for Russia too. You'd have to read/debug the code to understand how it works, and change it according to your requirements to format it with building number etc.

    Please mark both answers as verified to resolve the thread.

  • Verified answer
    Community Member Profile Picture
    on at

    Followed your recommendation and found formatAddress method on LogisticsPostalAddress and found some if conditions that were checking some settings for RU address  like the following :

    case LogisticsAddressElement::Building_RU:
         if (_building)//&& !LogisticsAddressFormatLines::includeElementInAddressFormat(addrFormat, LogisticsAddressElement::StreetName))
         {
             saveLogisticsAddress += _building + #Separators;
         }
    break;

    I commented the includeElementInFormat method as my requiremt is to include at all times. Same can be done for many other fields in the switch.

    Hope this helps anyone later on

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans