cancel
Showing results for 
Search instead for 
Did you mean: 
Troja
Level 14

Reset PDStorage at a given time

Hi all,

has anyone an idea how to reset any PDStorage User Data at the specific time??

E.g. Resetting any PDStorage User Value at 00:00 AM.

Cheers

0 Kudos
1 Reply
eelsasser
Level 15

Re: Reset PDStorage at a given time

In the error handler, write a rule that checks for

Rule Criteria:

Incident.ID equals 5 AND

DateTime.Time.Hour equals 0 AND

DateTime.Time.Minute equals 0

Then choose what you want to delete with one of these events:

Events:
PDStorage.DeleteAllGlobalData
PDStorage.DeleteAllUserData
PDStorage.DeleteGlobalData ("myKey")
PDStorage.DeleteUserData ("myKey")

incident.ID == 5 is a monitoring backgroud timer that triggers once every 60 seconds and can be used for this purpose.