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 ti get the new fields which is added in standard table in AX 2012 R3 through code

(0) ShareShare
ReportReport
Posted on by 30

Hi all,

Can you please let me know I wants to get the new  fields which is added in standard table in AX 2012 R3.

Could please send me the sample code to get the list of table with new fields. That I need to send to customer.

Please give me more shed on this. 

Thanks!

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    What exactly do you want?

    1) List of new fields added in (one) standard table

    2) List of tables that have new fields

    And what kind of list does your customer want? Can you share some example of how that list would look like? That's a good starting point for your technical design.

    - One option is to run Code upgrade tool in LCS, it gives you a report that lists your customizations.

    - Another one is to create AOT project from model in Developer workspace (Tools - Code upgrade - Create project from model), or create new AOT project that contains all table changes on a given layer.

    These options would require no development at all.

  • @rp@n Profile Picture
    30 on at

    Thanks Nikoloas,

    Let me explain

    1. CustTable -- suppose we have added 5 new fields

    2. Vend Table - suppose we have added 2 new fields .

    So, I need

    5 new fields from Cust table and 2 new fields from Vend table.

    Like other tables also...

    This is my requirements

    Please give me more shed on this

    Thanks!

  • @rp@n Profile Picture
    30 on at

    Hi Nikoloas,

    2nd option - List of tables that have new fields.

    Please give me more shed on this.

    Thanks!

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Thanks for the clarification.

    I don't have a 100% ready code for you, but found this with a quick web search:

    1) List tables: dynamicsuser.net/.../how-to-get-list-oftables-table-group-main-tables-in-x

    2) List fields in a table: community.dynamics.com/.../1045059

    Once you understand those examples, you can apply that understanding and and iterate all tables that exist on custom layer, and then list all fields that exist on that custom layer.

  • @rp@n Profile Picture
    30 on at

    Thanks Nikolas,

    The 2nd option "list fields in table " is openings my forum only.

    Please give me more shed on this

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Sorry, here's the correct link: community.dynamics.com/.../ax-2012-loop-through-all-the-fields-of-a-table-in-x

  • @rp@n Profile Picture
    30 on at

    Thanks Nikoloas,

    Suppose if they have added new fields in CUS or VAR layer in CustTable .

    Then in the above link can I add code for layer?? (Like cus or var)

    So, it will return only those columns based on layer not all.

    Please give  me more shed on this

    Thanks!

  • @rp@n Profile Picture
    30 on at

    Kindly suggest anyone please

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Here's one more blog that shows how to find elements by layer: community.dynamics.com/.../x-cross-reference-for-extended-data-types-1618632832

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi @rp@n,

    There are also system tables called UtilElements and UtilIDElements which can give the information of fields and the layer.

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans