Skip to main content
12-Amethyst
Feb 20, 2024 12:12 PM UTC
Solved

Last time used a Thing

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. 

Rocko
RockoAnswer
19-Tanzanite
Feb 20, 2024 2:23 PM UTC

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.

7 replies

5-Regular Member
Feb 20, 2024 12:44 PM UTC

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

Translate
tenegabi12-AmethystAuthor
12-Amethyst
Feb 20, 2024 12:48 PM UTC

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. 

Translate
Rocko
19-Tanzanite
Feb 20, 2024 1:15 PM UTC

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.

 

Translate
tenegabi12-AmethystAuthor
12-Amethyst
Feb 20, 2024 1:54 PM UTC

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. 

Translate
Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Feb 20, 2024 2:23 PM UTC

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.

Translate