RecurringPattern Class
Namespace
Usage
Example
This example shows code for RecurringPattern and its properties.
global class RecurringPattern {
global enum DaysOfWeek {Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday}
global enum FrequencyType {DAILY, WEEKLY, MONTHLY}
global Set<DaysOfWeek> DaysOfWeek { get; set; }
global FrequencyType FrequencyType { get; set; }
global Integer Frequency { get; set; }
global Integer NumberOfVisits { get; set; }
}
Recurring Pattern Properties
RecurringPattern contains the following properties.
DaysOfWeek
Signature
global Set<DaysOfWeek> DaysOfWeek { get; set; }
global enum<FSL.RecurringPattern> DaysOfWeek {Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday}
Property Value
Type: Set<enum>
Usage
You can set DaysofWeek manually. Alternately, you can derive the days the customer is available from the visiting hours record associated with the work order that is associated with the service appointment passed into the API.
Only one visit should be scheduled per day. For example, if you are scheduling a total of six visits and set DaysOfWeek to Monday and Wednesday, the API doesn’t provide a response with more than one visit scheduled for Monday and one visit scheduled for Wednesday.