Skip to main content
12-Amethyst
February 20, 2024
Solved

Last time used a Thing

  • February 20, 2024
  • 2 replies
  • 2019 views

Hello there,

 

Is a way to see when was last used a Thing? Or a service? I try to search on Internet and in Thingworx, but I can't find anything about that. 

Best answer by Rocko

Adding to the previous options, you could add a DATETIME property named "lastAccess" to your thing. In the service, you would update this property with the current date. So whenever the service is called, the property will be updated. This way you can track when the service(s) of that thing were called last.

2 replies

5-Regular Member
February 20, 2024

Hello @tenegabi ,

 

If you want to check any changes that might have happened, you can check in the change history tab of the respective Thing. 

 

Regards

Bhawna

tenegabi12-AmethystAuthor
12-Amethyst
February 20, 2024

Hello @bchaudhary_448008 ,

 

Not this options, I know already this, I want to know when was run last time a Thing, not last modify a service. 

Rocko
19-Tanzanite
February 20, 2024

What do you mean by "used", when a property value was updated, or a service called? Or just when someone "looked" at it?

There is no way to track if a Thing was returned by a query or if someone just looked at it.

For editing access you can use subscriptions (on DataChangeEvent) and custom logging, Value Streams or the Audit Subsystem.

 

tenegabi12-AmethystAuthor
12-Amethyst
February 20, 2024

Hello @Rocko ,

 

I have a lot of Things, one of them are part an application on my company, I have a task to see what application is unused for more 90 days, if is unused more that 90 days we will delete the application. I don' know if I explain good. 

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
February 20, 2024

Adding to the previous options, you could add a DATETIME property named "lastAccess" to your thing. In the service, you would update this property with the current date. So whenever the service is called, the property will be updated. This way you can track when the service(s) of that thing were called last.