API to create/update jobs to new group - VisualCron - Forum

Community forum

Keval
  •  Keval
  • No customer Topic Starter
2017-03-08T22:49:17Z
Hi

We are using Visual Cron to automate jobs such as scheduling stored procedure, SSIS packages. Many jobs are quite complex having few steps, conditions and triggers.
I am looking for API sample to create or update jobs from one group to another group including all the conditions, triggers and all settings.

Thanks
Keval
Support
2017-03-13T10:38:17Z
What you need to do clone the Job, like this, and then set new group name:

Dim c As JobClass = j.CloneType
c.ResetJobStats()
c.ResetTaskStats()
c.CreateNewIds()
c.Group = "new name"

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top