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 :
Microsoft Dynamics AX (Archived)

Develop form

(0) ShareShare
ReportReport
Posted on by 383

Hi

 i create new field for country in sales table and add it to create sales form i need to fill this field automatically when select customer2625.Untitled11.png account

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    You can add your code to initFromCustTableIL method of SalesTable table, you will find standard code that initializes various fields on salesTable from customer record there, so follow same logic.  

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    304,191 Super User 2026 Season 1 on at

    Hi Ahmed,

    You can achieve it using x++ logic on the table or datasource modifiedField method. The addresses are stored in the table LogisticsPostalAddress. A customer can have multiple addresses linked via the global address book record. Probably you need the primary address, but you didn't specify that information in your question.

  • AhmedSaeed Profile Picture
    383 on at

    could you explain this please

  • AhmedSaeed Profile Picture
    383 on at

    Hi ievgen Miroshnikov

    i add this code to the initFromCustTableIL method  but not working

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    First of all you need to explain what code have you added and have you done incremental CIL after doing your change ?

  • Verified answer
    AhmedSaeed Profile Picture
    383 on at

    Hi ievgen Miroshnikov

    i add this code to the initFromCustTableIL method  but not working

    /*ahmed*/   salesTable.PartyCountry         =custTable.PartyCountry;

  • Verified answer
    AhmedSaeed Profile Picture
    383 on at

    Hi ievgen Miroshnikov

    many thanks it working with me after incremental CIL

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans