Resetting trigger dependency with powershell - VisualCron - Forum

Community forum

obristo
2021-03-03T22:16:45Z
Hi,

Trying to iterate through all jobs and reset trigger dependencies with PowerShell which I assume resets the "fired times of trigger" back to 0.

Getting a job with something like $job ="http://localhost:8001/VisualCron/json/Job/Get?token=*****&id=1234567789"

I can see the jobs have a ResetTriggerDepedency which is set to False.

$job.ResetTriggerDepedency = "True"

I have tried to set this to True but this does not have the desired affect. The trigger still has a value of 1 when checking through the GUI.

Is this the correct method to reset this value?
Support
2021-03-10T16:01:56Z
After setting this property you need to update the Job (send the Job to server).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top