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 will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

(0) ShareShare
ReportReport
Posted on by 30

Hi all,

can you please let me know how will get field name, datatype, EDT and size of fields form table throgh code in AX 2012 R3.

Please give me more shed on this.

Thanks!

I have the same question (0)
  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi @rp@n,

    You need to check Dict* classes (DictTable and DictField)

    microsftdynamics.blogspot.com/.../get-all-fields-name-type-mendatory-and.html

  • @rp@n Profile Picture
    30 on at

    thanks Sergei,

    edt size is not there. how will get ?

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi @rp@n,

    Do you mean size of string field? If yes, it can be fetched from DictField.stringLen() method

  • @rp@n Profile Picture
    30 on at

    yes,

    it's showing the name string only but not showing the EDT name

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi @rp@n,

    There is typeId method as well which will return you EDT Id and you can use extendedTypeId2Name function to convert EDT Id to EDT name.

    extendedTypeId2Name(DictField.typeId())

  • @rp@n Profile Picture
    30 on at

    thanks Sergei

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

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans