Solved

List Unused object

  • 28 December 2022
  • 3 replies
  • 39 views

Hi All,

 

Is there a way from the grey pages to list all unused metrics in KPIs, Insights, other metrics… ?

Without having to check metric one by one using the Object/Used button. 

 

Best regards

Jean-Christophe 

icon

Best answer by Iva Gasparekova 28 December 2022, 19:02

View original

3 replies

Userlevel 3

Yes, your assumption is correct. Thank you for your kind words and understanding, appreciated.

If the metric's meta contains parameter "unlisted" set to "1", it means that such metric is hidden. But you are right, it might be still used by other objects.

Thanks Iva. However it means that I will have to script this and create a loop for each metric. I think check one by one is probably faster. have a great day ! I thought there was an easier way to do it as it seems the meta “unlisted” set to 1 was meaning not used but it’s not the case apparently. sometime it is sometime not

 

Best regards

Jean-Christophe 

Userlevel 3

Hi Jean-Christophe,

You can use the API call to Get a list of metadata objects of a specific category and then Get the objects used by an object.
Same results can be achieved via gray pages, the endpoint looks similar to my example below:

 

https://<your_hostname>/gdc/md/{projerct_id}/usedby2/{object_id}

 

Reply