Overview
Setting up Zentien involves four steps:- Install the Salesforce package
- Connect your org to Zentien
- Configure unhandled error capture (email inbound)
- Add
ErrorLogger.log()to your Apex code
Step 1 — Install the Salesforce package
Open the link below while logged into your Salesforce org: Install Zentien → When prompted, select Install for All Users and click Install. This installs two components:ErrorEvent__e— the Platform Event Zentien listens toErrorLogger.cls— the Apex class you call from your code
The package is an Unlocked Package — all source code is open and visible in your org. You can inspect every line.
Step 2 — Connect your org
- Log in to app.zentien.io
- Go to Orgs → Connect Org
- Select your environment (Production or Sandbox)
- You will be redirected to Salesforce — log in and click Allow
- You are redirected back to Zentien — your org is now connected
Step 3 — Configure unhandled error capture
Every org gets a unique inbound email address:{orgId}@zentienapp.com
You can find your address on the Orgs page in the Zentien dashboard.
Add this address in two places in your Salesforce org:
Apex exceptions:
Go to Setup → Apex Exception Email → External Email Addresses and add your Zentien inbound address.
Flow faults:
Go to Setup → Process Automation Settings and add your Zentien inbound address to the Send Process or Flow Error Email field.
From now on, any unhandled Apex exception or Flow fault will automatically appear in your Zentien dashboard.
Salesforce may suppress repeated emails for the same exception within a short window. See FAQ for details.
Step 4 — Capture handled errors
Wrap your Apex code withErrorLogger.log() to capture errors you catch explicitly: