cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Read DataTable thing from Extension

Highlighted
Aquamarine

Read DataTable thing from Extension

Hi All,

I am trying to Read DataTable thing from Extension. It was returning null.

My code :

DataTableThing masterTable = (DataTableThing) ThingUtilities.findThing("BConfig_CM_ParametersMaster_DT");
DataTableThing masterTable = (DataTableThing)EntityUtilities.findEntity("BConfig_CM_ParametersMaster_DT", ThingworxRelationshipTypes.DataTable);

both codes are returning masterTable as "null". how to resolve this issue?

 

Thanks.

2 REPLIES 2

Re: Read DataTable thing from Extension

Anyone??

Re: Read DataTable thing from Extension

Hi @Sathishkumar_C.

 

Apologies for the delay on this.  Since you responded back so quickly on this thread, it appeared that it had already been responded to.

 

With the limited information you have provided, it is difficult for us to determine why you are receiving NULL.  We are assuming you are creating your own extension.  If so, we would need to see more of your code to better understand your intent.

 

If you have already resolved your issue, please feel free to post the solution here for the benefit of others who may have similar questions.

 

Regards.

 

--Sharon