cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Attribute Id of a Attribute for Taxanomy Table

pankaj001
Participant
0 Kudos

Hi Experts,

Can some one please help me in getting the Attribute ID for attributes of a Taxanomy Table via MDM Java API. I have the TableID of the table.

Please advise me how to proceed further.

Regards,

Pankaj

Accepted Solutions (1)

Accepted Solutions (1)

pankaj001
Participant
0 Kudos

Hi

I got it by myself:

TableId TableId = schema.getTableId("");

RetrieveAttributesCommand comm = new RetrieveAttributesCommand(userSessionContext);

comm.setTaxonomyTableId(TableId);

comm.execute();

AttributeProperties[] ids = comm.getAttributes();                                                

for(int a = 0;a<ids.length;a++){

     System.out.println("POC for ID :: "+ids[a].getId());

     System.out.println("POC for Names :: "+ids[a].getName());

}

                                                     

Thanks

Answers (0)