Process Builder is one of the most powerful tools provided by Salesforce to implement business requirements declaratively. Process Builder helps businesses to save time, as well as money, by implementing solutions quickly. In theory, implementation of Process Builder is straightforward – you create a Process; test it; and then, use Change Set to deploy it to Production. Seems simple, right? But, not so fast!
Just like most things in life, however, Process Builder is not immune to bugs :(; and, neither is it any easier to debug it :(. Salesforce, however, does offer a handful of debugging tools – such as a user can use Error Email sent by Salesforce; or, a user can leverage standard Debug Log. Each option, however, has its pros and cons. This article is focused on (1) What is a Flow and Process Error Email and, how does it work?; and, (2) How to control who receives Flow and Process Error Emails.
By default, when a Process or Flow interview (Running version of a Flow) fails, Salesforce sends a detailed Error email to the admin who last modified the Process or Flow, as shown in the following screenshot:
The email includes (1) error message from the failure; and, (2) details about how each flow element, in the interview, executed. In most cases, these emails are very helpful in solving the problem. In the preceding screenshot, the error message stated that the error occurred due to a particular Validation Rule. And, therefore, by default, the error email went to an admin that last modified the Process or Flow.
Before Summer’18 release, there was no way to change those settings. But now, it is possible to customize it. Let us work through this via a business use case.
Business Use Case
Edward Backhouse is working as System administrator at GurukulOnCloud. He has created many Processes to streamline sales and services lifecycle at GurukulOnCloud. As he created all Processes and Flows, by default, he receives all error emails for Flows and Processes. Last week, Edward onboarded a new Salesforce Administrator Annie Ingersoll. Now, Edward is looking for a way to channel error emails to Annie Ingersoll for all the Flows and Processes that he created. Read the rest of this entry!