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!
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!
thanks Sergei
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())
yes,
it's showing the name string only but not showing the EDT name
Hi @rp@n,
Do you mean size of string field? If yes, it can be fetched from DictField.stringLen() method
thanks Sergei,
edt size is not there. how will get ?
Hi @rp@n,
You need to check Dict* classes (DictTable and DictField)
microsftdynamics.blogspot.com/.../get-all-fields-name-type-mendatory-and.html
André Arnaud de Cal...
293,020
Super User 2025 Season 1
Martin Dráb
231,837
Most Valuable Professional
nmaenpaa
101,156
Moderator