---
schema_version: "1"
id: 5f71bba09346e7a913103aae8701458f70aa5f47764f7a083458671679a51e20
title: SiteDomain
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_sitedomain.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_sitedomain.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7c4e2b7db3f37d2287c613a4047178e64652fe40b8a8e5a783ff95887665c9e6
description: SiteDomain is a read-only object, and a one-to-many replacement for the Site.TopLevelDomain field. This object is available in API version 21.0, and has been deprecated as of API version 26.0. In API version 26.0 and later, use the Domain and DomainSite objects instead.
---
# SiteDomain

SiteDomain is a read-only object, and a one-to-many replacement for the Site.TopLevelDomain field. This object is available in API version 21.0, and has been deprecated as of API version 26.0. In API version 26.0 and later, use the [Domain](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_domain.htm "Read-only object that represents a custom Web address assigned to a site in your organization. This object is available in API version 26.0 and later.") and [DomainSite](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_domainsite.htm "Read-only junction object that joins the Site and Domain objects. This object is available in API version 26.0 and later.") objects instead.

To access this object, Digital Experiences, Salesforce Sites, or Site.com must be enabled.

## Supported Calls

describeSObjects(), query(), retrieve()

## Special Access Rules

- Customer Portal users can’t access this object.
- To view this object, you must have the View Setup and Configuration permission.

## Fields

| Field | Description |
| --- | --- |
| Domain | 
Type

url

Properties

Filter, 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.



 |
| SiteId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the associated Site.



 |
| DomainType | 

Type

picklist

Properties

Filter, Group, Sort, Nillable

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. This field is available in version 24.0 of the API.



 |

## Usage

Use this read-only object to query the domains that are associated with each site in your organization.