Skip to content

Get schedule

Returns a schedule by Id.

GetSchedule(Byval Id as String) as String

Id (String)

The numeric Id of the requested schedule.

Returns a string with the following values, separated by the character defined with Set splitter (default |): Id, ScheduleStart, ScheduleEnd, Occurrences, IntervalStart, IntervalEnd, Recurrence, RecurrencePattern, Run, LastRun, Active, WOL, Guid.

If no schedule exists with the specified Id, the function raises an error.

Set oCMS = CreateObject("CapaInstaller.SDK")
oCMS.SetInstanceManagementPoint("1")
Wscript.echo oCMS.GetSchedule("5")

The example above will return something like this: 5|06-01-2011 12:00:00||0|00:00:00|1.00:00:00|Periodical|RecurEvery[1] weeks on [Monday-Tuesday-Wednesday-Thursday-Friday-Saturday-Sunday]|Weekly||True||842b2894-cdab-4a2c-905c-17ee052179db