PresenceDeclineReason defines an Omni-Channel reason that agents can select when declining work requests. It controls the reason's identity and agent-facing label. The type is available only when Omni-Channel is enabled in the org.
A decline reason is not an agent's presence configuration. PresenceUserConfig references reasons through its declineReasons element. Creating a reason alone does not establish that a particular agent can select it.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the metadata component. This field is inherited from Metadata and is distinct from the text shown to agents. |
label |
Supplies the text agents see for the decline reason, such as "Incorrect queue". Its type is string. |
Behavior and Constraints
Omni-Channel enablement is an access prerequisite for this metadata type. A deployment destination must have Omni-Channel enabled for PresenceDeclineReason to be available.
Keep component identity separate from display wording: fullName identifies the component, while label supplies the wording presented to agents.
The association between a presence configuration and a decline reason belongs to PresenceUserConfig, not to the decline reason itself. If an agent cannot select an existing reason, inspect the relevant presence configuration rather than treating the reason's existence as proof of availability.
Deployment and Retrieval
In Metadata API file-based deployments and retrievals, components are stored in the presenceDeclineReasons folder with the suffix .presenceDeclineReason. The component XML uses PresenceDeclineReason as its root element and label for the agent-facing text.
The type supports the wildcard * in package.xml, the manifest that selects metadata components. To select all decline reasons, use PresenceDeclineReason as the type name and * as its member selection.
When moving a reason for use by agents, account for the PresenceUserConfig components that reference it. Deploying the reason alone does not configure that relationship.
Before changing or removing a reason, inspect the PresenceUserConfig components that actually reference it through declineReasons. The possible relationship between these types does not establish which configurations in an org use a particular reason.
Relationships
The connection that matters for agent selection is the incoming reference from a presence configuration. Manage that association on the configuration, not on the reason.
Referenced By
-
PresenceUserConfig:declineReasons.
Common Questions
Why is PresenceDeclineReason unavailable in the destination org?
The type is available only when Omni-Channel is enabled. Feature enablement is a prerequisite in the deployment destination.
Why can't an agent select a decline reason that already exists?
A reason's existence alone does not establish agent availability. Inspect the relevant PresenceUserConfig and its declineReasons references.
How do I retrieve all PresenceDeclineReason components?
Use a package.xml entry with type name PresenceDeclineReason and member *. Retrieved components use the presenceDeclineReasons folder and .presenceDeclineReason suffix.
Is the decline reason label its metadata name?
No. The inherited fullName identifies the component. The label supplies the text presented to agents.