Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

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

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.

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    Hi Rafia,

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

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    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

  • Dishen Profile Picture
    Dishen 266 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    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?

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans