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 6

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!

  • @rp@n Profile Picture
    6 on at
    RE: how will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

    thanks Sergei

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: how will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

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

    yes,

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

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: how will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

    Hi @rp@n,

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

  • @rp@n Profile Picture
    6 on at
    RE: how will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

    thanks Sergei,

    edt size is not there. how will get ?

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: how will get field name, datatype, edt and size of fields form table throgh code in AX 2012 R3.

    Hi @rp@n,

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

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,020 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans