OrgDomainLog

Represents a Salesforce org’s previous My Domain.

Version 

Introduced in API version 51.0.

Supported SOAP API Calls 

describeSObjects(), query(), retrieve()

Supported REST API Methods 

GET, HEAD, Query

Fields 

DomainPartition 

  • Type: picklist

  • Required: No

  • Properties: Filter, Group, Nillable, Restricted picklist, Sort

  • Introduced: API version 55.0

  • 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:

Available in API version 55.0 and later.

  • Possible values:

    • none — None — Indicates that this org doesn’t use partitioned domains.

    • sandbox — Sandbox — Used in sandboxes with enhanced domains. These orgs are always partitioned.

    • develop — Develop — Used in Developer Edition orgs. Also used in patch orgs where partitioned domains were deployed before Winter ’24.

    • patch — Patch — Used in patch orgs. Available in API version 59.0 and later.

    • trailblaze — Trailblaze — Used in Trailblazer Playgrounds.

    • scratch — Scratch — Used in scratch orgs.

    • demo — Demo — Used in demo orgs. Available in API version 60.0 and later.

    • free — Free — Reserved for internal use.

    • sfdctest — SFDC Test — Reserved for internal use.

MyDomainName 

  • Type: string

  • Required: No

  • Properties: Filter, Group, Nillable, Sort

  • Description: A previous My Domain name for the Salesforce org.

ProdSuffixType 

  • Type: picklist

  • Required: No

  • Properties: Filter, Group, Restricted picklist, Sort

  • Description: A previous Salesforce domain suffix, which is appended to the My Domain name.

  • Possible values:

    • MySalesforceLimited — my.salesforce.com — my.salesforce.com without enhanced domains

    • DatabaseLimited — database.com — database.com

    • CloudforceLimited — cloudforce.com — cloudforce.com

    • OrgLevelCertificateLimited — my-salesforce.com — legacy version of my-salesforce.com that’s noncompliant with browser settings that block third-party cookies

    • Restricted1 — my.salesforce.ms — Reserved for future use.

    • MySalesforce — my.salesforce.com — my.salesforce.com with enhanced domains

    • Restricted2 — my.salesforce.cag — Reserved for future use.

    • OrgLevelCertificate — my-salesforce.com — my-salesforce.com

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}

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!