cancel
Showing results for 
Search instead for 
Did you mean: 

MDM Java API getting TableId using the Table Name

Former Member
0 Kudos

Hi All,

Can someone tell me how to get the TableId for a table using the MDM Java Api, if i only know the Table Code in MDM.

Also can i see the table ID of my tables in MDM Console?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harsh,

You can make use of class GetRepositorySchemaCommand

GetRepositorySchemaCommand repo = new GetRepositorySchemaCommand(con)

try

{

repo.execute();

}

catch(Exception e)

{}

RepositorySchema r = repo.getRepositorySchema();

TableId tid = r.getTableId("Material");

where con = ConnectionAccessor object

Material = Table Code

I have not tested the the above code but i think it will work

Regards,

Jitesh Talreja

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Jitesh,

It worked