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?
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.