Skip to main content
This class is used to represent a week schedule - what hours a day are “active” for each day, etc.

Constructors

WeekSchedule()

This class is used to represent a week schedule - what hours a day are “active” for each day, etc.

Methods

addTimeSpan(DateTime,TimeSpan)

Adds a time span to the schedule.
Returns: CRMScript.Native.DateTime

getDifference(DateTime,DateTime)

Returns difference between two DateTime as a TimeSpan.
Returns: CRMScript.Native.TimeSpan

getFriStart()

This function returns the start time (object) of “active” mode for Friday.
Returns: CRMScript.Global.Time

getFriStop()

This function returns the end time (object) of “active” mode for Friday.
Returns: CRMScript.Global.Time

getMonStart()

This function returns the start time (object) of “active” mode for Monday.
Returns: CRMScript.Global.Time

getMonStop()

This function returns the end time (object) of “active” mode for Monday.
Returns: CRMScript.Global.Time

getNonDates()

This function returns the dates that are closed, comma separated.
Returns: CRMScript.Global.String

getSatStart()

This function returns the start time (object) of “active” mode for Saturday.
Returns: CRMScript.Global.Time

getSatStop()

This function returns the end time (object) of “active” mode for Saturday.
Returns: CRMScript.Global.Time

getSunStart()

This function returns the start time (object) of “active” mode for Sunday.
Returns: CRMScript.Global.Time

getSunStop()

This function returns the end time (object) of “active” mode for Sunday.
Returns: CRMScript.Global.Time

getThuStart()

This function returns the start time (object) of “active” mode for Thursday.
Returns: CRMScript.Global.Time

getThuStop()

This function returns the end time (object) of “active” mode for Thursday.
Returns: CRMScript.Global.Time

getTueStart()

This function returns the start time (object) of “active” mode for Tuesday.
Returns: CRMScript.Global.Time

getTueStop()

This function returns the end time (object) of “active” mode for Tuesday.
Returns: CRMScript.Global.Time

getWedStart()

This function returns the start time (object) of “active” mode for Wednesday.
Returns: CRMScript.Global.Time

getWedStop()

This function returns the end time (object) of “active” mode for Wednesday.
Returns: CRMScript.Global.Time

loadFromPriority(Integer)

load a WeekSchedule object using the given priority’s week schedule. Be aware that this method will clear all settings you may have on the WeekSchedule object.
Returns: CRMScript.Global.Void

setFriStart(Time)

This function sets the start time (object) of “active” mode for Friday.
Returns: CRMScript.Global.Void

setFriStop(Time)

This function sets the end time (object) of “active” mode for Friday.
Returns: CRMScript.Global.Void

setMonStart(Time)

This function sets the start time (object) of “active” mode for Monday.
Returns: CRMScript.Global.Void

setMonStop(Time)

This function sets the end time (object) of “active” mode for Monday.
Returns: CRMScript.Global.Void

setNonDates(String)

This function sets the dates that are inactive. Example date string: “1/10/2004,24/12”. If the year is not specified, the date is inactive every year.
Returns: CRMScript.Global.Void

setSatStart(Time)

This function sets the start time (object) of “active” mode for Saturday.
Returns: CRMScript.Global.Void

setSatStop(Time)

This function sets the end time (object) of “active” mode for Saturday.
Returns: CRMScript.Global.Void

setSunStart(Time)

This function sets the start time (object) of “active” mode for Sunday.
Returns: CRMScript.Global.Void

setSunStop(Time)

This function sets the end time (object) of “active” mode for Sunday.
Returns: CRMScript.Global.Void

setThuStart(Time)

This function sets the start time (object) of “active” mode for Thursday.
Returns: CRMScript.Global.Void

setThuStop(Time)

This function sets the end time (object) of “active” mode for Thursday.
Returns: CRMScript.Global.Void

setTueStart(Time)

This function sets the start time (object) of “active” mode for Tuesday.
Returns: CRMScript.Global.Void

setTueStop(Time)

This function sets the end time (object) of “active” mode for Tuesday.
Returns: CRMScript.Global.Void

setWedStart(Time)

This function sets the start time (object) of “active” mode for Wednesday.
Returns: CRMScript.Global.Void

setWedStop(Time)

This function sets the end time (object) of “active” mode for Wednesday.
Returns: CRMScript.Global.Void