SalesWorkQueueSettings selects the score field used to sort the Sales Engagement work queue for third-party scoring. It configures sorting for leads, contacts, or person accounts; it does not define the underlying score field.
Access to this metadata type requires being a Sales Engagement customer. Each settings record applies to one supported entity type, rather than configuring all work queue objects at once.
Key Elements
| Element | What the Element Controls |
|---|---|
featureName |
Identifies the feature being configured. The only allowed value is ThirdPartyScore. |
targetEntity |
Selects the entity whose work queue sorting is configured. Allowed values are Contact, Lead, and PersonAccount. |
targetField |
Identifies the custom Number field used for sorting, by developer name or field ID. The special value ScoreIntelligence.Score selects Einstein Intelligence Score for lead scoring. The special value None removes custom number fields from the work queue. |
Behavior and Constraints
Create one SalesWorkQueueSettings record for each entity type you want to configure. The three settings work together: featureName must be ThirdPartyScore, targetEntity selects a supported entity, and targetField selects the score field for that entity.
targetEntity is not an unrestricted object-name setting. Its supported values are specifically Contact, Lead, and PersonAccount. When selecting a custom field, that field must have the Number data type.
Interpret the special targetField values exactly. ScoreIntelligence.Score is the documented option for Einstein Intelligence Score for lead scoring, not an ordinary custom-field name. Likewise, None clears the custom-number-field selection from the work queue; it is not a field reference.
Deployment and Retrieval
Components use the .salesworkqueuesetting suffix and are stored in the salesworkqueuesettings folder. The type inherits fullName from the base Metadata type.
In the package.xml manifest, use SalesWorkQueueSettings as the type name. The type supports the wildcard member * for deployment and retrieval.
The setting depends on the selected entity and field combination, not on a field name alone. The custom field definition belongs to CustomField; this settings component only selects it for work queue sorting.
When moving settings between orgs, distinguish a developer-name reference from a field ID. An ID-valued targetField must identify the intended custom Number field in the destination org. Do not treat an ID as a developer name or assume that a source-org field ID identifies the intended destination field.
To remove custom number fields from the work queue configuration, set targetField to None. This is the documented clearing option, rather than supplying another field reference.
Relationships
The entity selection associates the setting with object metadata. When a custom score field is selected, the field selection references its field metadata. The special values ScoreIntelligence.Score and None must be interpreted as options, not ordinary custom-field references.
References
-
CustomObject:targetEntity. -
CustomField:targetField, when selecting a custom Number field.
Common Questions
Which objects can SalesWorkQueueSettings configure?
It supports Contact, Lead, and PersonAccount. Create one settings record for each entity type you configure.
How do I use Einstein Intelligence Score to sort the lead work queue?
Set featureName to ThirdPartyScore, targetEntity to Lead, and targetField to ScoreIntelligence.Score.
How do I remove a custom score field from the work queue?
Set targetField to the exact value None. This removes the custom-number-field selection from the queue configuration.
Can I deploy the same targetField value to another org?
Check whether the value is a developer name or a field ID. A field ID must identify the intended custom Number field in the destination org. The selected field must also match the configured targetEntity.