Get Ready to Develop with Field Service
API End-of-Life Policy
Field Service Tooling API
OptimizationFiles Class
FieldService Class
Field Service Custom Triggers
Previous Versions
Preview and create shifts from a pattern.
These methods are for FieldService. All methods are static.
Create up to 2,000 shifts from a pattern.
51.0
Yes
public static ConnectApi.ShiftsFromPattern createShiftsFromPattern(ConnectApi.ShiftsFromPatternInput shiftsFromPatternInput, String shiftPatternId)
Type: ConnectApi.ShiftsFromPatternInput
A ConnectApi.ShiftsFromPatternInput object providing the pattern.
Type: String
ID of the shift pattern.
Type: ConnectApi.ShiftsFromPattern
Preview up to 2,000 shifts from a pattern.
51.0
Yes
public static ConnectApi.ShiftsFromPattern previewShiftsFromPattern(ConnectApi.ShiftsFromPatternInput shiftsFromPatternInput, String shiftPatternId)
Type: ConnectApi.ShiftsFromPatternInput
A ConnectApi.ShiftsFromPatternInput object providing the pattern.
Type: String
ID of the shift pattern.
Type: ConnectApi.ShiftsFromPattern