FieldService Class

Preview and create shifts from a pattern.

ConnectApi

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)

shiftsFromPatternInput

Type: ConnectApi.ShiftsFromPatternInput

A ConnectApi.ShiftsFromPatternInput object providing the pattern.

shiftPatternId

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)

shiftsFromPatternInput

Type: ConnectApi.ShiftsFromPatternInput

A ConnectApi.ShiftsFromPatternInput object providing the pattern.

shiftPatternId

Type: String

ID of the shift pattern.

Type: ConnectApi.ShiftsFromPattern