How to get the DataTable name from a List of DataTables?

Hello,

I have a list of DataTables in a collection. For each one, I want to know the DataTable name.
The screenshot below can help to understand:

KR,
Francisco

item.TableName

Cheers

I had done this but the value is empty @Florent_Salendres

This need to be set either at datatable creation

New DataTable("TableName")

Or later with an assign

image

Cheers

1 Like

Ok, that worked. I though that the TableName was the name of the DT variable.

Thank you!!

Hi,
If you didn’t gave name at the time of creation, it will return Nothing.
The default value of the datatable should be
New DataTable(“tablename”).
Then if you run dt.TableName, it will return “tablename”

1 Like