April 05, 2020

How to Control Who Receives Process Builder or Flow Error Emails

  • What happens when a process or flow interview fails?

  1. When a process or flow interview fails, Salesforce sends an email with details about everything that was executed and what failed. The details include the data that's involved in the process or flow, including user-entered data. 
  2. When a user does something that triggers a process, such as create a record, and the process fails, the user gets an error message. The error message includes the process name, error ID, and sometimes technical information that the user can give to you, the Salesforce admin. You can use the error ID to locate the detailed error email that is sent when the process failed.

  • To whom detailed error email is sent?

A detailed error email is sent to the admin who last modified the process or flow.

  • Why do we need to control who receives flow and process Error emails?

A detailed error email is sent to the admin who last modified the process or flow. But admin isn’t the best person to read and act on the details of what was executed and what went wrong.

  • How to control who receives flow and Process Error Emails?

You can choose to send error emails to the Apex exception email recipients, which you specify and control in Setup.

  • Steps:

  1. Go to Setup->Type Process Automation in Quick find box
  2. Click Process Automation Settings
  3. From Send Process or Flow Error Email to, You can see two options
    • User Who Last Modified the Process or Flow (default)
    • Apex Exception Email Recipients
  4.  Select  Apex Exception Email Recipients
  5. Click on Save

  • Apex Exception Email Recipients

Sends emails to the addresses set on the Apex Exception Email page in Setup. Choose this option to control who receives process or flow error emails in your org.

  • Steps: 

  1. Go to Setup -> Type Apex Exception Email
  2. Click on Add Salesforce User or you can specify external email address also

1 comment: