---
schema_version: "1"
id: f07c1e13ab717fdd44421c1c4c3c5df54630133317f5a93adde774e819306a3c
title: ConnectApi.ShiftsFromPattern
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_new_shifts_from_pattern.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_new_shifts_from_pattern.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c8347aa446a28eed0415c63013f5a57a0ebb820fe264d90e202d6b4fb679d6af
description: Shifts created from a pattern.
---
# ConnectApi.ShiftsFromPattern

Shifts created from a pattern.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| count | Integer | Total count of created shifts. | 51.0 |
| error | [ConnectApi.Shifts​FromPatternError](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_shift_pattern_error.htm "Shifts from pattern error response.") | Error details for shifts from a pattern. | 53.0 |
| isSuccess | Boolean | Indicates if the request is successful (true) or not (false). | 53.0 |
| recordIds | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | Collection of created shift IDs. | 51.0 |

#### See Also

- [createShiftsFromPattern(shiftsFromPatternInput, shiftPatternId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_FieldService_static_methods.htm#apex_ConnectAPI_FieldService_newShiftsFromPattern_2 "Create up to 2,000 shifts from a pattern.")
- [previewShiftsFromPattern(shiftsFromPatternInput, shiftPatternId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_FieldService_static_methods.htm#apex_ConnectAPI_FieldService_previewShiftsFromPattern_1 "Preview up to 2,000 shifts from a pattern.")