Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Is there a way, or a service to get the initial creation date/time of a thing ?
Orhan
Solved! Go to Solution.
Hi Orhan,
You can do it this way:
var confChanges = Things["yourThingName"].GetConfigurationChangeHistory();
confChanges.Filter({ changeAction: "CREATE"});
var creationDate = confChanges.rows[0].timestamp;
Best Regards,
Carles.
Hi Orhan,
You can do it this way:
var confChanges = Things["yourThingName"].GetConfigurationChangeHistory();
confChanges.Filter({ changeAction: "CREATE"});
var creationDate = confChanges.rows[0].timestamp;
Best Regards,
Carles.
Thanks a lot ! It worked..
Regards,
Orhan