General X++ Development
How do I get a table name from a TableId in X++?
How do I get a table name from a TableId in X++?
1 answer
Write an answerUse tableId2Name().
str tableName = tableId2Name(tableNum(CustTable));
info(tableName);For metadata-heavy or generic code, helper functions like this are much better than hardcoding table names as strings.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer