Domain
Read-only object that represents a custom Web address assigned to a site in your organization.
To access this object, Salesforce Sites, Digital Experiences, or Site.com must be enabled for your organization. DomainSite contains records for domains that serve your Experience Cloud sites only when enhanced domains are deployed. The system-managed site hostnames for those Experience Cloud sites end in .my.site.com. This object doesn’t contain records for legacy domains that serve Experience Cloud sites with hostnames that end in .force.com.
Introduced in API version 26.0.
describeSObjects(), query(), retrieve()
-
- Customer Portal users can’t access this object.
- To view this object, you must have either the View Setup and Configuration or Manage Custom Domains permission.
- Site.com Publisher users have read-only API access to the Domain and DomainSite objects.
- Type: string
- Properties: Filter, Nillable, Sort
- Introduced: API version 43.0
- Description: The canonical name (CNAME) of the external host or server. If you use a custom domain with a non-Salesforce provider, such as your own external server or CDN provider, to serve your domain, this field points to the CNAME of the external provider.
- Type: string
- Properties: Filter, idLookup, Sort
- Description: The branded custom Web address within the global namespace identified by this domain’s type. In the Domain Name System (DNS) global namespace, this field is the custom Web address that you registered with a third-party domain name registrar. The custom Web address can be used to access the site of this domain.
-
Type: picklist
-
Properties: Filter, Group, Restricted picklist, Sort
-
Description:
The global namespace that this custom Web address belongs to. This value is set to DNS for custom Web addresses in the global DNS.
DomainType can have the following value:
-
Possible values:
- DNS — DNS — Domain Name System (DNS)
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Introduced: API version 47.0
- Type: boolean
- Type: boolean
- Type: boolean
-
Type: boolean
-
Properties: Filter
-
Introduced: API version 52.0
-
Description:
Indicates whether the
preloaddirective is added to the HSTS header so that the domain is eligible for HSTS preloading registration (true) or not (false).After this field is set to
true, to ensure that HTTPS connections are always used in browsers that support HSTS, you must also register the domain at https://hstspreload.org.We only modify the HSTS headers of domains that are eligible for registration. Domain names can consist of a public suffix plus one additional label. For more information, see Add a Domain in Salesforce Help.
- Type: boolean
- Type: boolean
- Type: boolean
- Type: boolean
Use this read-only object to query the domains that are associated with each site in your organization.