---
schema_version: "1"
id: 4c5365a960feb4d6eedf6bb05586bb84c63cc9870fa3bfb42a28b3eff4dd3efb
title: SchedulingRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_schedulingrule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_schedulingrule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: be6786de6a6a8f52f6bbfa81cd23ad3892278258155a8294e42250be5c2514a7
description: Represents scheduling rules that are hard constraints in the scheduling logic engine. This object is available in API version 52.0 and later.
---
# SchedulingRule

Represents scheduling rules that are hard constraints in the scheduling logic engine. This object is available in API version 52.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()

## Special Access Rules

The org must have the Workforce Engagement license. To view, create, edit, and delete records, the user needs to have the Workforce Engagement Planner permission set.

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

textarea

Properties

Create, Nillable, Update

Description

The scheduling rule description.



 |
| DeveloperName | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The developer name value of the record.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.















 |
| Language | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The language of the scheduling rule.



 |
| MasterLabel | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The scheduling rule name.



 |
| SchedulingCategory | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

Shifts.

Possible values are:

- A—Appointment
- B—Shift





 |
| SchedulingRuleType | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

The scheduling rule type.

Possible values are:

- A—Active Resources
- B—Match Skills
- C—Availability
- LimitNonstandardShifts—Specifies a rule type that limits how many non-standard shifts can be assigned to each agent. This type is available in API version 54.0 and later.
- M—Match Territory
- Q—Match Queues
- RestTimeMinutes—Specifies a rule type that requires the agent to have a minimum rest time between consecutive shifts. This type is available in API version 56.0 and later.
- W—Work Limit





 |