OrgDomainLog

Represents a Salesforce org’s previous My Domain. This object is available in API version 51.0 and later.

Supported SOAP API Calls

describeSObjects(), query(), retrieve()

Supported REST API Methods

GET, HEAD, Query

Fields

Field Details
DomainPartition
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The partition for this org. When none, partitioned domains aren’t enabled. Otherwise, My Domain hostnames include the partition value. For example, the format of a My Domain login hostname for a Developer Edition org with partitioned domains is MyDomainName.develop.my.salesforce.com.

Possible values are:

  • demo—Used in demo orgs. Available in API version 60.0 and later.
  • develop—Used in Developer Edition orgs. Also used in patch orgs where partitioned domains were deployed before Winter ’24.
  • free—Reserved for internal use.
  • none—Indicates that this org doesn’t use partitioned domains.
  • patch—Used in patch orgs. Available in API version 59.0 and later.
  • sandbox—Used in sandboxes with enhanced domains. These orgs are always partitioned.
  • scratch—Used in scratch orgs.
  • sfdctest—Reserved for internal use.
  • trailblaze—Used in Trailblazer Playgrounds.

Available in API version 55.0 and later.

MyDomainName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A previous My Domain name for the Salesforce org.
ProdSuffixType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A previous Salesforce domain suffix, which is appended to the My Domain name.
Possible values are:
  • CloudforceLimitedcloudforce.com
  • DatabaseLimiteddatabase.com
  • MySalesforcemy.salesforce.com with enhanced domains
  • MySalesforceLimitedmy.salesforce.com without enhanced domains
  • OrgLevelCertificateLimited—legacy version of my-salesforce.com that’s noncompliant with browser settings that block third-party cookies
  • OrgLevelCertificatemy-salesforce.com
  • Restricted1—Reserved for future use.
  • Restricted2—Reserved for future use.

Usage

To check for previous My Domain values for your org, first perform a GET request.
1GET /services/data/v51.0/tooling/query?q=SELECT Id FROM OrgDomainLog

If that query returns a size of 1 or greater, previous My Domain values exist for the org. Each record represents a previous My Domain.

To use a GET request for the My Domain name and suffix, use this syntax with a OrgDomainLog record ID.
1GET /services/data/v51.0/tooling/sobjects/MyDomainLog/recordID
The following is an example response for a GET request querying a OrgDomainLog record ID.
1{
2  "attributes" : {
3    "type" : "OrgDomainLog",
4    "url" : "/services/data/v56.0/tooling/sobjects/OrgDomainLog/9UXXXXXXXXXXXXXOAA"
5  },
6  "Id" : "9UXXXXXXXXXXXXXOAA",
7  "IsDeleted" : false,
8  "CreatedDate" : "2022-10-02T21:04:38.000+0000",
9  "CreatedById" : "005XXXXXXXXXXXXIAG",
10  "LastModifiedDate" : "2022-10-02T21:04:38.000+0000",
11  "LastModifiedById" : "005XXXXXXXXXXXXIAG",
12  "SystemModstamp" : "2022-10-02T21:04:38.000+0000",
13  "DomainPartition" : "none",
14  "MyDomainName" : "mycompany",
15  "ProdSuffixType" : "MySalesforceLimited"
16}