---
schema_version: "1"
id: f5c0c5f4dd5f359f53b8cc61f816755da4f470ab304012c580572d36654fd873
title: OrgDomainLog
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_mydomainlog.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_mydomainlog.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4a59b771157c9311df9d12f1e684485389e34cb556f225bef283edfc9fd537c9
description: Represents a Salesforce org’s previous My Domain. This object is available in API version 51.0 and later.
---
# 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:

- CloudforceLimited—cloudforce.com
- DatabaseLimited—database.com
- MySalesforce—my.salesforce.com with enhanced domains
- MySalesforceLimited—my.salesforce.com without enhanced domains
- OrgLevelCertificateLimited—legacy version of my-salesforce.com that’s noncompliant with browser settings that block third-party cookies
- OrgLevelCertificate—my-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.

GET /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.

GET /services/data/v51.0/tooling/sobjects/MyDomainLog/recordID

The following is an example response for a GET request querying a OrgDomainLog record ID.

{
  "attributes" : {
    "type" : "OrgDomainLog",
    "url" : "/services/data/v56.0/tooling/sobjects/OrgDomainLog/9UXXXXXXXXXXXXXOAA"
  },
  "Id" : "9UXXXXXXXXXXXXXOAA",
  "IsDeleted" : false,
  "CreatedDate" : "2022-10-02T21:04:38.000+0000",
  "CreatedById" : "005XXXXXXXXXXXXIAG",
  "LastModifiedDate" : "2022-10-02T21:04:38.000+0000",
  "LastModifiedById" : "005XXXXXXXXXXXXIAG",
  "SystemModstamp" : "2022-10-02T21:04:38.000+0000",
  "DomainPartition" : "none",
  "MyDomainName" : "mycompany",
  "ProdSuffixType" : "MySalesforceLimited"
}