AuthorizedEmailDomain
Supported SOAP API Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Supported REST API Methods
DELETE, GET, HEAD, PATCH, POST, Query
Special Access Rules
Fields
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”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 (;).
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.