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.

AuthorizedEmailDomain

Represents an authorized domain for email verification. This object is available in API version 64.0 and later.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

Supported SOAP API Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Supported REST API Methods

DELETE, GET, HEAD, PATCH, POST, Query

Special Access Rules

To create or modify authorized email domains, users must have the Email Administration permission.

Fields

Field Details
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description

The unique name of the record in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. This field is automatically generated but you can supply your own value if you create the record using the API.

Note these important considerations.

  • When creating large sets of data, always specify a unique DeveloperName for each record. If no DeveloperName is specified, performance slows down while Salesforce generates one for each record.
  • Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.
DomainName
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The unique domain name.
Example
example.com
Id
Type
ID
Properties
Create, Filter, Group, Sort
Description

The ID of this authorized email domain. The ID starts with the string 1TB.

Example
1TB00000000000B
IsDomainOwnershipVerified
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether Salesforce successfully verified ownership of this domain (true) or not (false).
The default value is false.
IsEmailChangeVerfRqr
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether email verification is required before Salesforce can send email from updated email addresses on this domain (true) or not (false).
The default value is true.
When IsDomainOwnershipVerified is false, then IsEmailChangeVerfRqr has no effect.
Available in API version 68.0 and later.
IsEmailVerificationRequired
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether address verification is required before Salesforce can send email from new email addresses on this domain (true) or not (false).
The default value is true.
When IsDomainOwnershipVerified is false, IsEmailVerificationRequired has no effect.

When IsDomainOwnershipVerified is true, IsEmailVerificationRequired and IsEmailChangeVerfRqr determine when address-level verification is required.

  • If IsEmailVerificationRequired and IsEmailChangeVerfRqr are true, then email address verification is always required before Salesforce can send email from addresses on this domain.
  • If IsEmailVerificationRequired is true and IsEmailChangeVerfRqr is false, then address verification is required only when an existing user or shared email address is updated to an address on this domain.
  • If IsEmailVerificationRequired and IsEmailChangeVerfRqr are false, then verification is never required for email addresses on this domain.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the language of the authorized email domain. The value for this field is the language value of the org.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for this object. This display value is the internal label that is not translated.

Usage

Domain verification is required to bypass email verification for an authorized email domain.

To verify ownership of an authorized email domain, first create an AuthorizedEmailDomain with IsDomainOwnershipVerified set to false.

Then determine the verification code for the authorized email domain. Use the format orgId=AuthorizedEmailDomainId where orgId is the 15-digit ID for your Salesforce org and AuthorizedEmailDomainId is the authorized email domain Id. You can also find the verification code on the Authorized Email Domains page in Setup.

Add a DNS TXT record for the DomainName with or without _sfdv. as a prefix that points to a verification code.

Here’s an example of a DNS TXT record for an authorized email domain with a DomainName of example.com and an AuthorizedEmailDomainId of 1TB00000000000B in an org with ID 00D000000000P08.

1Name                TTL  CLASS  TYPE     VALUE
2-------------------------------------------------------------------- 
3example.com.        600  IN     TXT      "00D000000000P08=1TB00000000000B”

This example is a raw TXT record. The trailing dot in example.com. tells the DNS server that the name is absolute, stopping the provider from appending anything to the domain name. Check with your DNS provider to determine how to enter the name in their system to get this result.

Note

Here’s an example of a DNS TXT record for the same domain with the _sfdv. prefix.

1Name                TTL  CLASS  TYPE     VALUE
2-------------------------------------------------------------------- 
3_sfdv.example.com.  600  IN     TXT      "00D000000000P08=1TB00000000000B”

If a DNS TXT record already exists for DomainName and _sfdv.DomainName, you can create a second TXT record for one of those names or you can append the verification code to the value list of an existing TXT record. To append a value, separate the values with a semicolon (;).

Changes to DNS can take up to 48 hours to propagate across the internet.

Note

To start the domain verification process after the required DNS TXT record exists, set IsDomainOwnershipVerified to true. If that verification process succeeds, IsDomainOwnershipVerified remains true. Otherwise, an error is returned and IsDomainOwnershipVerified is set to false.