Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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 |
|
| MyDomainName |
|
| ProdSuffixType |
|
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 OrgDomainLogIf 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/recordIDThe 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}