ApexEmailNotification

Stores a Salesforce user ID or external email address to be notified when unhandled Apex exceptions occur.

System-generated emails from an unverified email-sending domain aren’t delivered, even if the From email address is verified. See Requirements to Send Email from Salesforce.

Important

Each ApexEmailNotification contains either an email or a user ID, but not both.

Note

Version 

Introduced in API version 35.0.

Supported SOAP API Calls 

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

Supported REST API Methods 

DELETE, GET, HEAD, PATCH, POST, Query

Fields 

Email 

  • Type: string

  • Required: No

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

  • Description: The external email address to which the notification is sent. Mutually exclusive with the UserId field.

UserId 

  • Type: reference

  • Required: No

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

  • Description: ID of the user to which the notification is sent. Mutually exclusive with the Email field.

This is a relationship field.

  • Relationship name: User
  • Relationship type: relationship
  • Refers to: User

Usage 

To notify users of your org at the email addresses they have on record, use UserId. To notify external users or alternate email addresses, use Email.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!