> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zentien.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get Zentien monitoring your Salesforce org in under 10 minutes.

## Overview

Setting up Zentien involves five steps:

1. Install the Salesforce package
2. Connect your org to Zentien
3. Configure unhandled error capture (email inbound)
4. Add `ErrorLogger.log()` to your Apex code
5. (Optional) Add Flow fault path monitoring and callout tracking

***

## Step 1 — Install the Salesforce package

Open the link below while logged into your Salesforce org:

**[Install Zentien →](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tdL000000ULlNQAW)**

**For sandbox orgs**, use this link instead:

**[Install Zentien (Sandbox) →](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tdL000000ULlNQAW)**

When prompted, select **Install for All Users** and click **Install**.

This installs the following components:

* `ErrorEvent__e` — Platform Event for error data
* `ErrorLogger.cls` — Apex class you call from try/catch blocks
* `CalloutEvent__e` — Platform Event for outbound callout tracking
* `ZentienHttpCallout.cls` — Drop-in wrapper for `Http.send()` to track callouts
* `Zentien Log Flow Error` — Subflow to add to any Flow's fault path

<Note>
  The package is an **Unlocked Package** — all source code is open and visible in your org. You can inspect every line.
</Note>

***

## Step 2 — Connect your org

1. Log in to [app.zentien.io](https://app.zentien.io)
2. Go to **Orgs** → **Connect Org**
3. Select your environment (Production or Sandbox)
4. You will be redirected to Salesforce — log in and click **Allow**
5. You are redirected back to Zentien — your org is now connected

Zentien will immediately start listening for Platform Events from your org.

***

## 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.

<Note>
  Salesforce may suppress repeated emails for the same exception within a short window. See [FAQ](/reference/faq) for details.
</Note>

***

## Step 4 — Capture handled errors

Wrap your Apex code with `ErrorLogger.log()` to capture errors you catch explicitly:

```apex theme={null}
try {
    // your code here
} catch (Exception e) {
    ErrorLogger.log(e, 'YourClassName', 'yourMethodName');
}
```

Errors logged this way appear instantly in your Zentien dashboard via Platform Events — no email delay.

***

***

## Step 5 — (Optional) Flow faults and callout tracking

### Flow fault path monitoring

Add the `Zentien Log Flow Error` subflow to any Flow's fault path to capture errors explicitly rather than relying on email. See [Flow Fault Path Monitoring](/setup/flow-errors) for step-by-step instructions.

### Callout monitoring

Replace `new Http().send(req)` with `ZentienHttpCallout.send(req)` anywhere in your Apex code to track every outbound HTTP callout. See [Callout Monitoring](/setup/callout-monitoring) for details.

***

## You're done

Go to the **Errors** page in Zentien. Errors will start appearing as they occur in your org.

Set up [alerts](/using/alerts) to get notified via Slack or email when new errors are detected.

Explore [Salesforce Pulse](/using/pulse) to monitor org health, job runs, and governor limit trends.
