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 :
Finance | Project Operations, Human Resources, ...
Answered

How to add address in VendBankAccounts form in dynamics 365 finance and operations

(0) ShareShare
ReportReport
Posted on by 266

Hello all, Am struck with one of my task. 

I have VendBankAccounts form, there is address tab where we can enter the address. 

Now am asked to create one more tab for the additional address to create. so i have done the replica as how we get the address in the address tab by adding separate field for address and mapped it. I am struck at some point, whatever the address that am giving in the custom tab, it is reflecting in the address tab as well. but the address that i enter in the custom tab should not effect the address tab.

I tried by taking references from few articles. Sharing it below.

THOMAS WILKE's DYNAMICS AX / D365fO BLOG: Add a single postal location to an ax 2012 form (axbloggerblog.blogspot.com)

How to add Standard Address fields into a new table [Dynamics365/AX7] - Dynamics 365 Finance Community

I request someone to guide me how to add the address from scratch.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Rafia,

    In the form part in the custom tab, which you duplicated from the original control, did you set the form part link to point to your new address field instead of "Location"?

    pastedimage1643018113712v1.png

  • Rafia Mohammed Profile Picture
    266 on at

    Hello Gunjan Bhattacharyya ,

    Yes! i have changed with my custom field, but no luck.

    The data what am modifying in the custom tab i can see the same in address tab as well.

    could you please provide me any other solution if you are aware of?

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Rafia,

    You are having the issue due to how the form "LogisticsPostalAddressSingle" has been designed. If you look at buildLogisticsPostalAddressQuery method in the form, which is called from LogisticsPostalAddress\executeQuery method, they are using the location field for linking the caller data source (since VendBankAccount has mappings to LogisticsLocationMap).

    pastedimage1643025308240v1.png

    If you want to use the same form to display the address, you might do that by creating a new menu item (copying LogisticsPostalAddressSingleFormPart), and using this is the custom tab. The next step would be to create a CoC on the buildLogisticsPostalAddressQuery method and check if the caller menu item is the new menu item you created. Based on this condition you can change the field value in the range.

    It might be simpler to add LogisticsPostalAddress as a data source to this form and use the same for displaying addresses. You can check how this has been done in ProjTable form

    pastedimage1643025787821v3.png

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Rafia,

    I just posted a solution for something similar in this thread. Please try and let me know if this works for you.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans