EmailDomainFilter

Represents a filter that determines whether an email relay is restricted to a specific list of domains.

Introduced in API version 43.0.

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

  • You must have the “Email Administration,” “Customize Application,” and “View Setup” user permissions to use this object.
  • You must create an email relay in Setup or through the EmailRelay object before you can use the EmailDomainFilter object.
  • Type: reference

  • Properties: Create, Filter, Group, Sort, Update

  • Description:

    The ID of the EmailRelay record.

    This is a relationship field.

  • Relationship name: EmailRelay

  • Relationship type: relationship

  • Refers to: EmailRelay

  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: Restricts the email relay to send emails based on the sender domains (FromDomain) listed in this field. This field is optional, accepts a list of comma-separated values, and supports the wildcard character.
  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the email domain filter is active (true) or not (false). Use this field to enable or disable the email domain filter.
  • Type: int
  • Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update
  • Description: Indicates the order in which the email domain filter is processed. Filters are evaluated in ascending order. The priority number must be unique. If this field is left blank, it is assigned the next available number and is processed last. Processing stops after the first matching filter is applied.
  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: Restricts the email relay to send emails based on the recipient domains (ToDomain) listed in this field. This field is optional, accepts a list of comma-separated values, and supports the wildcard character.

If you also plan to activate Bounce Management and Email Compliance Management, confirm with your email admin that your company allows relaying email sent from Salesforce. For more information on bounce management, see Configure Deliverability Settings for Emails Sent from Salesforce.