CaseSettings
Represents an organization’s case settings, such as the default case owner, which case-related features are enabled, and which Classic email templates are used for various case activities.
In the package manifest, all organization settings metadata types are accessed using the Settings name. See Settings for details.
This type extends Metadata and inherits its fields.
CaseSettings values are stored in the Case.settings file in the settings directory. The .settings files are different from other named components because there’s only one settings file for each settings component.
CaseSettings is available in API version 27.0 and later.
- Type: boolean
- Required: No
-
Type: string
-
Required: No
-
Description: Specifies the email template used for case assignment notifications. The format must be
folderName/emailTemplateName.Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether to create an automated response record after a customer’s initial email (
true) or not (false).
-
Type: string
-
Required: No
-
Description: Specifies the email template used for case close notifications. The format must be
folderName/emailTemplateName.Lightning email templates aren’t packageable. We recommend using a Classic email template.
-
Type: string
-
Required: No
-
Description: Specifies the email template used for case comment notifications. The format must be
folderName/emailTemplateName.Lightning email templates aren’t packageable. We recommend using a Classic email template.
-
Type: string
-
Required: No
-
Description: Specifies the email template used for case create notifications. The format must be
folderName/emailTemplateName.Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: boolean
- Required: No
- Type: FeedItemSettings[]
- Required: No
- Introduced: API version 32.0
- Description: Specifies the settings for feed items in feed-based case page layouts.
- Type: boolean
- Required: No
- Description: Indicates whether unread feed items are shown in bold in Lightning Experience (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether Case Merge is enabled in Lightning Experience (
true) or not (false).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether
Closedis included in the Case Status field on case edit pages (true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the default Case Feed layout is used in the org (
true) or not (false).
- Type: string
- Required: No
- Description: Specifies the default owner of a case when assignment rules fail to locate an owner.
- Type: string
- Required: No
- Description: Specifies whether the default case owner is a user or a queue.
-
Type: string
-
Required: No
-
Description: Specifies the user listed in the Case History related list for automated case changes from:
- Assignment rules
- Escalation rules
- On-Demand Email-to-Case
- Cases logged in the Self-Service portal
Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: string
- Required: No
- Description: Use this Apex class name to provide default values for the email action.
- Type: EmailToCaseSettings
- Required: No
- Description: The organization’s Email-to-Case settings.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether Case Feed is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Introduced: API version 47.0
- Description: Indicates whether earlier messages in an email thread are removed from email feed items (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether draft emails are enabled (
true) or not (false). Enabling email drafts requires that Case Feed and Email-to-Case are also enabled.
- Type: boolean
- Required: No
- Description: Indicates whether early triggers on escalation rules are enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the Email Action Default Handler setting is enabled (
true) or not (false). Use this setting to select an Apex class to load a default template or to specify the default target fields for the email action.
- Type: boolean
- Required: No
- Description: If
true, the case contact is notified by email when someone makes an externally visible post on a case in an Experience Builder site.
- Type: boolean
- Required: No
- Description: If
true, moderators can create cases from Question feed items in Chatter in your organization.
- Type: boolean
- Required: No
- Description: If
true, moderators can create cases from Question feed items in Chatter in all Experience Builder sites where Chatter Questions is enabled.
- Type: boolean
- Required: No
- Description: If
true, site members can see case-related emails, comments, and updates in the case feed.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether multilingual searching for Solutions in self-service portals is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether multilingual searching for public Solutions is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether multilingual Solutions are enabled (
true) or not (false).
-
Type: boolean
-
Required: No
-
Description: Indicates whether default email templates are enabled (
true) or not (false). Default email templates are available only if draft emails are enabled.Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether browsing for Solutions is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether using inline Solutions category breadcrumbs is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether Solutions summaries are enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the Suggested Articles list appears on case pages. (
true) or not (false). Is only valid ifenableSuggestedSolutions=false.
- Type: boolean
- Required: No
- Description: Indicates whether the Suggested Articles list appears on customer portal pages (
true) or not (false). Is only valid ifenableSuggestedSolutions=false.
- Type: boolean
- Required: No
- Description: Indicates whether the Suggested Articles list appears on partner portal pages (
true) or not (false). Is only valid ifenableSuggestedSolutions=false.
- Type: boolean
- Required: No
- Description: Indicates whether the View Suggested Solutions or Find Articles button appears on case detail pages (
true) or not (false). Is only valid ifenableSuggestedArticlesApplication,enableSuggestedArticlesCustomerPortal, andenableSuggestedArticlesPartnerPortal=false.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether early triggers are enabled to escalate a case (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether generic messages are enabled (
true) or not (false).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: If
true, duplicate cases aren’t deleted after a case merge.
- Type: boolean
- Required: No
- Description: When applying assignment rules to manually created records, indicates whether to keep the existing record type (
true) or to override the existing record type with the assignee’s default record type (false).
-
Type: string
-
Required: No
-
Description: Specifies the Apex class that defines the default email template for new email messages in Case Feed. This field appears only when
enableNewEmailDefaultTemplate``=true.Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: boolean
- Required: No
- Description: Indicates whether contacts who aren’t members of your Self-Service portal can be notified when a new comment is added to a case (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the default case owner is notified when assigned a new case (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the case owner is notified when a comment is added to a case (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the
Send Notification Emailcheckbox on cases is automatically selected when users change a case owner to another user (true).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether predictive support is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Introduced: API version 40.0
- Description: Indicates whether the case Attachments related list shows email attachments. If
true, the page displays an email icon next to each attachment from an email in the Attachments related list for cases. The related list’s list view also includes a Source column that identifies the attachment’s origin. Iffalse, email attachments aren’t displayed in the Attachments related list for cases.
- Type: boolean
- Required: No
- Description: Indicates whether the Save & Close button on case edit pages and the Cls link on Cases related lists are hidden (
true) or shown (false).
- Type: string
- Required: No
- Description: Specifies the email address used when the default case user is the system user.
- Type: boolean
- Required: No
- Description: Indicates whom case comment, case attachment, and case assignment email notifications appear to be sent from. Use
trueto show notifications as sent from a system address. Usefalseto show notifications as sent from the user or contact who is updating the case.
- Type: boolean
- Required: No
- Description: Indicates whether the system user is used as the automated case user (
true) or not (false). If false, then you must specify a value for thedefaultCaseUserfield.
- Type: boolean
- Required: No
- Description: Sets the default visibility of a case as indicated by the Visible in CSS option on the case edit page. If
false, the case is visible in CSS by default. Iftrue, CSS visibility is off.
- Type: WebToCaseSettings
- Required: No
- Description: The organization’s Web-to-Case settings.
Represents an organization’s Email-to-Case routing address.
- Type: EmailToCaseRoutingAddressType (enumeration of type string)
- Required: No
- Description: Specifies the type of Email-to-Case routing address.
- Possible values:
- EmailToCase — A routing address used with Email-to-Case or On-Demand Email-to-Case.
- Outlook — A routing address used with Salesforce for Outlook to create cases from Outlook. Requires that On-Demand Email-to-Case is enabled.
- Type: string
- Required: No
- Description: Specifies the email addresses or domains from which On-Demand Email-to-Case can receive email. Include multiple entries in a comma-separated list.
- Type: string
- Required: No
- Type: string
- Required: No
- Description: Specifies the default case origin for cases created through this routing address.
-
Type: string
-
Required: No
-
Description: Specifies the default owner of cases created through this routing address. The case owner can be either a user or a queue. Specify the case owner using a Salesforce username.
Specifying a case owner here in the routing address sets a value of
defaultCaseOwnerin CaseSettings.
- Type: string
- Required: No
- Description: Specifies whether the default case owner is a user or a queue.
- Type: string
- Required: No
- Description: Specifies the default case priority for cases created through this routing address.
- Type: boolean
- Required: No
- Description: Indicates whether a task is automatically assigned to the case owner when a case is created through an email (
true) or not (false).
- Type: string
- Required: No
- Description: Specifies the email address used to route email messages that are submitted as cases.
- Type: string
- Required: No
- Description: Specifies the Salesforce-generated routing address used for setting up Email-to-Case forwarding. This field value is read-only and can’t be modified.
- Type: string
- Required: No
- Introduced: API version 56.0
- Description: Defines which queue to use when emails can’t be routed with the specified Omni-Channel flow. This queue must use Case as the service channel object.
- Type: boolean
- Required: No
- Introduced: API version 61.0
- Description: Indicates whether users’ access to the email routing address is controlled by a permission set. If
true, only users with access via a permission set can use the routing address to send emails.
- Type: boolean
- Required: No
- Description: Indicates whether the customer has verified the routing address (typically by clicking a confirmation email). This field value is read-only and can’t be modified.
-
Type: string
-
Required: No
-
Description: Sets the Case Record Type used for new Cases that are created from emails sent to that specific routing address.
If not provided, Salesforce uses the org’s default Case Record Type for the user/context handling Email-to-Case. Ensure the record type exists and is active on Case.
- Type: string
- Required: No
- Introduced: API version 56.0
- Description: Specifies the name of an Omni-Channel flow that routes cases generated in Email-to-Case.
- Type: string
- Required: No
- Description: Specifies the name of the Email-to-Case routing address.
- Type: boolean
- Required: No
- Description: Indicates whether email routing and envelope information are saved (
true) or not (false).
- Type: string
- Required: No
- Description: Specifies the default status on tasks automatically assigned to the case owner when email is submitted as a case. Only applies if
createTaskis set totrue.
Represents an organization’s Email-to-Case settings.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether to save attachments sent using Email-to-Case as Salesforce Files (
true) or not (false).
- Type: boolean
- Required: No
- Description: When Email-to-Case receives an inbound email to thread to an existing case, attachments in the email that already exist on the case are not saved as new records and are instead linked to the new email (
true).
- Type: boolean
- Required: No
- Description: Indicates whether emails can be sent via an external service such as Gmail or Outlook, rather than the Salesforce email service (
true). External outbound email services are available in Lightning Experience only.
- Type: boolean
- Required: No
- Description: Indicates whether Set Case Source to Email is enabled (
true) or not (false). After you enable this setting, the Case Source field is updated toEmailfor all cases that originate from Email-to-Case. Associated emails are marked asReadwhen the agent opens the case.
- Type: boolean
- Required: No
- Description: Indicates whether Email-to-Case is enabled (
true) or not (false). Note: After Email-to-Case is enabled, it can’t be disabled.
- Type: boolean
- Required: No
- Description: Indicates whether HTML email is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the email status change invokes triggers when emails open in Case feeds or from Email Message records in Lightning (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether On-Demand Email-to-Case is enabled (
true) or not (false).
- Type: boolean
- Required: No
- Description: Indicates whether the Thread ID for a case is inserted in the body of an email (
true) or not (false). This is applicable only to orgs that do not use Lightning Threading.
- Type: boolean
- Required: No
- Description: Indicates whether the Thread ID for a case is inserted in the subject line of an email (
true) or not (false). This is applicable only to orgs that do not use Lightning Threading.
- Type: boolean
- Required: No
- Description: Indicates whether a threading token is appended in the email body when agents send an email from a Lightning email composer (
true) or not (false). This is applicable only to orgs using Lightning Threading.
- Type: boolean
- Required: No
- Description: Indicates whether a threading token is appended in the email subject when agents send an email from a Lightning email composer (
true) or not (false). This is applicable only to orgs using Lightning Threading.
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Description: Indicates whether the owner of a case receives a notification when a new email related to the case is received (
true) or not (false).
- Type: boolean
- Required: No
- Type: EmailToCaseOnFailureActionType (enumeration of type string)
- Required: No
- Description: Specifies what happens to email messages that are received after an organization exceeds its daily Email-to-Case limits.
- Possible values:
- Bounce
- Discard
- Requeue
- Type: boolean
- Required: No
- Description: Indicates whether the user signature is inserted after the reply but before the email thread in an outbound email (
true) or at the end of the email (false).
- Type: boolean
- Required: No
- Description: Indicates whether previous thread content in excluded from replies, to reduce the size of outgoing emails (
true) or not (false).
- Type: EmailToCaseRoutingAddress[]
- Required: No
- Description: The organization’s Email-to-Case routing addresses and their attributes. Removing an address from this list deletes it from the target org.
- Type: boolean
- Required: No
- Description: Indicates whether senders are required to confirm that they reviewed emails written by Einstein (
true) or not (false).
- Type: boolean
- Required: No
- Type: boolean
- Required: No
- Type: EmailToCaseOnFailureActionType (enumeration of type string)
- Required: No
- Description: Specifies what happens to email messages received from invalid senders.
- Possible values:
- Bounce
- Discard
- Type: boolean
- Required: No
- Description: Indicates whether metadata from incoming emails is used to match replies with cases if token-based threading doesn’t produce a match (
true) or not (false).
Represents an organization’s feed item settings. Available in API version 32.0 and later.
| Field Name | Field Type | Description |
|---|---|---|
characterLimit | int | Specifies the maximum number of characters displayed for each feed item. |
collapseThread | boolean | Removed. Indicates whether earlier messages in an email thread are removed from email feed items (true) or not (false).Available in API versions 27.0 to 46.0. |
displayFormat | FeedItemDisplayFormat (enumeration of type string) | Indicates how email feed items are displayed. Valid values are:
|
feedItemType | FeedItemType (enumeration of type string) | The type of feed item to which the settings apply. For FeedItemSettings, the only valid feedItemType value is EmailMessageEvent. |
- Type: int
- Required: No
- Type: FeedItemDisplayFormat (enumeration of type string)
- Required: No
- Type: FeedItemType (enumeration of type string)
- Required: Yes
Represents an organization’s Web-to-Case settings.
- Type: string
- Required: No
- Description: Specifies the default case origin for cases created through this web form. Applies only if
enableWebToCaseis set totrue.
-
Type: string
-
Required: No
-
Description: Specifies the default template used for email responses to cases that are submitted through a Self-Service portal. Applies only if
enableWebToCaseis set totrue.Lightning email templates aren’t packageable. We recommend using a Classic email template.
- Type: boolean
- Required: No
- Description: Indicates whether Web-to-Case is enabled (
true) or not (false).
This code sample is an example of a case settings file.
The following is an example package.xml that references the previous definition.
The wildcard character * (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see Settings. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.