Notifications
Announcements
No record found.
Can anyone help me to retrieve the list of all tables in ax 2009 with ID, Name and Label
*This post is locked for comments
yeah you can get list as following
static void ListOfTables(Args _args) { UtilElements localEelmet; UtilEntryLevel LayerName = UtilEntryLevel::usr; TreeNode treeNode; ; while select localEelmet where localEelmet.utilLevel == LayerName && localEelmet.recordType == UtilElementType::Table { treeNode = xUtilElements::getNodeInTree(xUtilElements::parentElement(localEelmet)); info(strFmt("TableId: %1 ; Name: %2",localEelmet.TableId,localEelmet.name)); } }
This job should do the trick.
static void TableList(Args _args) { tableId tableId; int tablecounter; Dictionary dict = new Dictionary(); for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++) { tableId = dict.tableCnt2Id(tablecounter); info(strFmt("TableId: %1 ; Name: %2 ; Lable: %3",tableId,tableid2name(tableId),tableid2pname(tableId))); } }
Hi,
I want to get the custom tables list from Dynamics AX 2009 through C#.
Could you please provide the sample code
Thanks
You already have X++ code doing that.
Use Business Connector to call X++ code AX 2009 from C#.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2