Queue
Represents a holding area for items before they are processed.
This type extends Metadata and inherits its fields.
The file suffix for queue components is .queue and components are stored in the queues directory of the corresponding package directory. This component supports cases, leads, service contracts (if Entitlements are enabled), and custom objects.
Introduced in API version 24.0.
As of Summer ’20 and later, only authenticated internal and external users can access this type.
- Type: string
- Required: No
- Description: A description of this component. The description should explain the component’s purpose and behavior so that administrators and developers understand when to use it.
- Type: boolean
- Required: No
- Introduced: API version 67.0
- Description: Required. Indicates whether records shared with users in this queue are also shared with users higher in the role hierarchy (
true) or not (false). This field corresponds to the Grant Access Using Hierarchies checkbox on the queue’s detail page.
- Type: boolean
- Required: No
- Description: Indicates whether emails are sent to queue members (
true) or not (false) when a new record is added to the queue.
- Type: string
- Required: No
- Description: The email address of the queue owner.
- Type: string
- Required: Yes
- Description: Required. The name of the queue. Corresponds to Label in the user interface.
- Type: QueueMembers
- Required: No
- Introduced: API version 42.0
- Description: Represents queue members added to the queue. Members can be added directly or selected by roles and public groups they belong to.
- Type: string
- Required: No
- Introduced: API version 42.0
- Description: Routing configuration name. Applies to orgs that use Omni-Channel with a routing configuration.
- Type: QueueSobject[]
- Required: No
- Description: Indicates the supported entity types.
Represents public groups in the org. Public groups are optionally used to add queue members.
Introduced in API version 42.0.
- Type: string[]
- Required: No
- Description: Represents a public group.
Represents queue members added to the queue. Members can be added directly as users or selected by the roles and public groups they belong to.
Introduced in API version 42.0.
- Type: PublicGroups
- Required: No
- Description: Represents public groups in the org. Public groups are optionally used to add queue members.
- Type: RoleAndSubordinates
- Required: No
- Description: Represents roles and their subordinates in the org’s role hierarchy, including customer and partner roles. Roles and their subordinate hierarchy are optionally used to add queue members.
- Type: RoleAndSubordinatesInternal
- Required: No
- Description: Represents internal roles and their subordinates in the org’s role hierarchy, excluding customer and partner roles. Roles and their subordinate hierarchy are optionally used to add queue members.
- Type: Roles
- Required: No
- Description: Represents roles in the org. Roles are optionally used to add queue members.
- Type: Users
- Required: No
- Description: Represents users in the org. Users can be added directly as queue members.
QueueSobject represents an entity type that the queue supports.
-
Type: string
-
Required: Yes
-
Description: Valid values are:
CaseContactRequestLeadServiceContractTask(Available in API version 48.0 and later.)- Custom objects (such as
ObjA_c)
Represents roles and their subordinates in the org’s role hierarchy, including customer and partner roles. Roles and their subordinate hierarchy can be used to add queue members.
Introduced in API version 42.0.
- Type: string[]
- Required: No
- Description: Represents a role and its subordinates, including customer and partner roles. Only available when digital experiences is enabled for your org and Experience Cloud site users are created with external account roles other than a shared person account role.
Represents internal roles and their subordinates in the org’s role hierarchy, excluding customer and partner roles. Roles and their subordinate hierarchy can be used to add queue members.
Introduced in API version 42.0.
- Type: string[]
- Required: No
- Description: Represents a role and its subordinates, excluding customer and partner roles.
Represents roles in the org. Roles can be used to add queue members.
Introduced in API version 42.0.
- Type: string[]
- Required: No
- Description: Represents a role.
Represents users in the org. Users can be added directly as queue members.
Introduced in API version 42.0.
- Type: string[]
- Required: No
- Description: Represents a user. Specify the user’s username.
The following is the definition of a queue, which supports Case, Lead, and a custom object named ObjA.
Here’s another definition of a queue containing queue members added directly or via public groups and roles. Queries retrieve values using the DeveloperName field, not the Name field, so that the returned names are unique. The query also appends letters to the end of duplicate names, so these groups and roles can be referred to independently.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.