Skip to main content

How it works

When Salesforce encounters an unhandled Apex exception or a Flow fault, it sends an email notification. Zentien provides each org with a unique inbound email address. When you add this address to your org’s notification settings, those emails flow directly into Zentien — no polling, no delay.

Find your inbound address

Go to Orgs in the Zentien dashboard. Your inbound address is shown next to your connected org:
{orgId}@zentienapp.com
Click the Copy button to copy it to your clipboard.

Configure in Salesforce

Add your inbound address in two places:

Apex Exception Email

Captures unhandled exceptions from Apex code, batch jobs, and scheduled jobs.
  1. Go to Setup → search “Apex Exception Email”
  2. Under External Email Addresses, add your Zentien inbound address
  3. Click Save

Flow and Process Error Email

Captures Flow fault path errors and Process Builder failures.
  1. Go to Setup → search “Process Automation Settings”
  2. Find the Send Process or Flow Error Email field
  3. Add your Zentien inbound address
  4. Click Save

Test it

To confirm the setup is working, trigger a test error and check your Zentien dashboard:
  1. In Zentien, go to Orgs and note your inbound address
  2. In your Salesforce org, run any code that throws an unhandled exception
  3. Within 1–3 minutes, the error should appear in Zentien → Errors
Salesforce suppresses duplicate exception emails when the same class throws the same error repeatedly within a short window. If you don’t receive an email after testing, wait a few minutes and try again with a different error. See the FAQ for more details.

Next step

Capture handled errors

Use ErrorLogger.log() to capture errors you catch explicitly in your Apex code.