TABLENAME Function (Record)
Gets the name of a table.
Name := Record.TABLENAME
The record in the table for which you want to find the table name.
Property Value/Return Value
Type: Text or code
The name of the table.
The TABLECAPTION Function (Record) retrieves the Caption Property of the table. If you want to enable your application for multilanguage functionality now or in the future, you must use the TABLECAPTION function instead of the TABLENAME function.
The following example retrieves the name of the Customer table by using the CustomerRec variable, a record from the Customer table. The value of the Customer table name is stored in the TableName variable and displayed in a message box. The value that is displayed is Customer.
This example requires that you create the following variables in the C/AL Globals window.
TableName := CustomerRec.TABLENAME; MESSAGE('The name of the table is: %1', TableName);
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.