Skip to main content
10-Marble
November 22, 2023
Solved

How to find particular datashape being used in which services exactly in Thing?

  • November 22, 2023
  • 1 reply
  • 810 views

How to find Perticular Datashape being used in which service in Thing?

Ex-Datashape Name-'dsEventsHeader'.

I Want to trace above datashape, In how many services are used?

Please provide some workaround or solution ASAP

Best answer by Velkumar

Hi @MM_10159448 

 

You can use 'GetWhereUsed' service to retrieve DataShape used information.

 

// result: JSON
let result = DataShapes["DATASHAPENAME"].GetWhereUsed({
	query: undefined /* QUERY */,
	characteristicType: undefined /* STRING */,
	characteristicName: undefined /* STRING */
});

 

To use this service you need to enable Relationship Subsystem

 

/VR

 

 

1 reply

Velkumar19-TanzaniteAnswer
19-Tanzanite
November 22, 2023

Hi @MM_10159448 

 

You can use 'GetWhereUsed' service to retrieve DataShape used information.

 

// result: JSON
let result = DataShapes["DATASHAPENAME"].GetWhereUsed({
	query: undefined /* QUERY */,
	characteristicType: undefined /* STRING */,
	characteristicName: undefined /* STRING */
});

 

To use this service you need to enable Relationship Subsystem

 

/VR