extentcode:
The ExtentCode attribute defines how calendar rule overlap is handled during calendar rule expansion.
The following table shows the values for this class.
SubtractRecurrenceIntervals
1
The recurrence duration determines the shadowing of that rule. Use this value to indicate working hours and a full day 24-hour shadow.
SubtractResults
2
Specifies that only the rule duration is shadowed. Use this value to indicate time off. For example, 4 hours of time off allow working hours to appear before and after.
Transparent
0
Specifies no shadowing of calendar rules. All rules are displayed even if they are shadowed or preceded by other rules.
timecode:
Type of calendar rule such as working hours, break, holiday, or time off. 0 for working hours.
Available
0
The time is available within the working hours of the resource.
Busy
1
The time is committed to an activity.
Unavailable
2
The time is unavailable.
Filter
3
Use additional filters for the time block such as service cost or service start time.
subcode:
Sample with timecode and subcode:
// The person is available and able to be scheduled during this time
level1Rule.timecode = new CrmNumber((int)TimeCode.Available);
level1Rule.subcode = new CrmNumber((int)SubCode.Schedulable);
// They are not available during lunch
lunchBreak.timecode = new CrmNumber((int)TimeCode.Unavailable);
// Because it is a break
lunchBreak.subcode = new CrmNumber((int)SubCode.Break);
Unspecified
0
Specifies free time with no specified restrictions.
Schedulable
1
A schedulable block of time.
Committed
2
A block of time that is committed to perform an action.
Uncommitted
3
A block of time that is tentatively scheduled but not committed.
Break
4
A block of time that cannot be committed due to a scheduled break.
Holiday
5
A block of time that cannot be scheduled due to a scheduled holiday.
Vacation
6
A block of time that cannot be scheduled due to a scheduled vacation.
Appointment
7
A block of time that is already scheduled for an appointment.
ResourceStartTime
8
Specifies to filter a resource start time.
ResourceServiceRestriction
9
A restriction for a resource for the specified service.
ResourceCapacity
10
Specifies the capacity of a resource for the specified time interval.
ServiceRestriction
11
Specifies that a service is restricted during the specified block of time.
ServiceCost
12
An override to the service cost for the specified time block.
effort:
Effort available for a resource during the time described by the calendar rule
rank:
(e.g. 0 is like the base rule, high numbers like 1, 2, 3... would be calendar rule instances that would override the validity or scope of the base calendar rule.