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

Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline Keval  
#1 Posted : Wednesday, March 8, 2017 11:49:17 PM(UTC)
Keval

Rank: No customer

Joined: 3/8/2017(UTC)
Posts: 1
Australia
Location: New South Wales, Sydney

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
Offline Support  
#2 Posted : Monday, March 13, 2017 11:38:17 AM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,256

Thanks: 877 times
Was thanked: 450 time(s) in 427 post(s)
What you need to do clone the Job, like this, and then set new group name:

Code:
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!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top