Newer Version Available

This content describes an older version of this product. View Latest

MyDomainLog

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
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
  • OrgLevelCertificateLimitedmy-salesforce.com
  • Restricted1—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 MyDomainLog

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 MyDomainLog record ID.
1GET /services/data/v51.0/tooling/sobjects/MyDomainLog/recordID
The following is an example response for a GET request querying a MyDomainLog record ID.
1{
2  "attributes" : {
3    "type" : "OrgDomainLog",
4    "url" : "/services/data/v51.0/tooling/sobjects/OrgDomainLog/9UXXXXXXXXXXXXXOAA"
5  },
6  "Id" : "9UXXXXXXXXXXXXXOAA",
7  "IsDeleted" : false,
8  "CreatedDate" : "2020-12-02T21:04:38.000+0000",
9  "CreatedById" : "005XXXXXXXXXXXXIAG",
10  "LastModifiedDate" : "2020-12-02T21:04:38.000+0000",
11  "LastModifiedById" : "005XXXXXXXXXXXXIAG",
12  "SystemModstamp" : "2020-12-02T21:04:38.000+0000",
13  "MyDomainName" : "mycompany",
14  "ProdSuffixType" : "MySalesforceLimited"
15}