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

# Business Process Monitoring for Salesforce

> Monitor any Salesforce workflow as a business process, from lead conversion to case resolution, measured from real user sessions.

Components
[`RUM JS`](https://docs.germainux.com/deploy/germain-ux-rum-js)
[`RUM Extension`](https://docs.germainux.com/deploy/germain-ux-rum-extension)

Availability
2022.1 or later

> [card] [How It Works](#how-it-works)
>
> Two shipped examples

> [card] [Before You Start](#before-you-start)
>
> Real User Monitoring

> [card] [Set It Up](#set-it-up)
>
> Configure your own

> [card] [KPIs](#kpis)
>
> Process and step KPIs

## Overview

GermainUX monitors any Salesforce workflow as a business process. You define where a process starts, the steps in between and where it ends, from the clicks, pages, records and events GermainUX already records. GermainUX then measures every run, by user, team and step, alerts when a run takes too long or stops halfway, and links each run to its Session Replay.

Everything is configurable: the steps, the conditions, the SLAs and the alerts. GermainUX ships two processes as ready-made examples, **Salesforce Opportunity BP** and **Salesforce Record Creation BP**. They're described in detail in [How It Works](#how-it-works).

### Other Salesforce Processes You Can Monitor

These are examples of processes you configure yourself. Name the steps after the actions your users take in your org.

| Process | Starts when | Steps | Ends when |
| - | - | - | - |
| **Lead qualification and conversion** | A user creates or opens a new lead | Qualification, status changes, first activity logged | The user converts the lead |
| **Case resolution** | A case is created | Assignment, first response, escalation, status changes | The user closes the case |
| **Quote and approval** | A user creates a quote on an opportunity | Line items added, discount applied, submitted for approval | The quote is approved or sent to the customer |
| **Closed deal to order** | An opportunity is set to **Closed Won** | Order created, order activated | The order reaches your order system, such as SAP ERP |
| **Service appointment scheduling** | A work order is created | Appointment booked, technician assigned, appointment confirmed | The work order is completed |

A process can also continue outside Salesforce. For example, an order that starts in Salesforce can be followed through MuleSoft and SAP ERP. See [Prevent and Trace Failed Orders](https://docs.germainux.com/use-cases/order-to-erp-monitoring.md).

### Questions It Answers

* How long does each step of a Salesforce workflow take, and for which teams?
* Where do users abandon a process, or loop back to an earlier step?
* How long do opportunities stay in each stage?
* Which object types take users the longest to create?
* Which users or teams take longer than expected to resolve a case?

## How It Works

A business process is built from data GermainUX already collects. The two shipped examples show how. Both are built from what the **Salesforce** UX Monitoring Profile records in the user's browser, with no Engine component and no Salesforce API call.

| Process | What GermainUX records | How the process is built |
| - | - | - |
| **Salesforce Opportunity BP** | While a user works on an opportunity record in Lightning, a **Salesforce Opportunity Interval** with the current stage of the Opportunity Path, the opportunity ID, and `COMPLETED` once the opportunity is in the last stage | GermainUX joins the intervals of the same opportunity, from all users and sessions, into one process with one step per stage. It follows an opportunity for up to 7 days. |
| **Salesforce Record Creation BP** | A **Salesforce Create Record Start** browser event when Salesforce opens the new-record form, and a **Salesforce Create Record End** event when the user saves the record, each with the object type | GermainUX measures the time between the two events in the same session, by object type |

An opportunity interval starts when the user works on the record (clicks, types or scrolls). It ends when the stage changes, the user leaves the record, or after 5 minutes without activity.

## Before You Start

* Real User Monitoring is deployed with the **Salesforce** UX Monitoring Profile. See [Deploy Real User Monitoring for Salesforce](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-rum-monitoring-deployment.md).
* For the shipped Opportunity example, users work in Lightning Experience, and the opportunity record page shows the **Path** component with the opportunity stages.

## Set It Up

The two shipped examples are enabled by default, so there is nothing to deploy for them.

To add a process for your own Salesforce workflow, or to change the shipped examples, in the left menu, go to **Settings > Analytics > Business Processes**:

**1. Define the start and the end**

Choose the KPI records that start and end a run, for example a **Salesforce User Click** with a given click name, or a record that reaches a given status.

**2. Add the steps**

Add one step for each action in between, with the condition that marks it. Name each step the way your users talk about it.

**3. Set the SLAs**

Set how long the whole process and each step may take. GermainUX alerts when a run breaches them.

GermainUX creates the process and step KPIs for you. See [Configure a Business Process](https://docs.germainux.com/analytics/business-process-workflow-monitoring/configure-a-business-process.md). The GermainUX team can help you model your first processes.

This is how the shipped **Salesforce Record Creation** process looks in **Settings > Analytics > Business Processes**:

![Business Processes filtered to Salesforce Record Creation, open with two BP steps, Record Creation Started and Record Creation Ended, Key Expression correlationId, the KPI Browser Event, and the related KPIs Salesforce Record Creation BP and BP Step](https://mintcdn.com/germain-ux/MpD4CZaeACQiUVi-/images/main/salesforce-business-process-monitoring/business-process-record-creation-config.png?fit=max\&auto=format\&n=MpD4CZaeACQiUVi-\&q=85\&s=0751d502a5611211228591ba50669fd0)

Salesforce Record Creation Business Process - GermainUX

To analyze record creation, open the **Salesforce Business Ops** dashboard. Its **Inefficient Record Creation By Type** portlet shows the **Salesforce Record Creation BP** by object type. In this example, creating Cases takes the most time and loses the most productivity:

![Inefficient Record Creation By Type portlet on the Salesforce Business Ops dashboard, 24 to 26 Nov: Case leads with 879.593 minutes of total duration and 554.259 minutes of lost productivity, followed by Opportunity, Lead, Contact and Task](https://mintcdn.com/germain-ux/TKtIlTY_2RarfR4J/images/main/salesforce-business-process-monitoring/record-creation-by-type.png?fit=max\&auto=format\&n=TKtIlTY_2RarfR4J\&q=85\&s=c7047142825ecc87632974742dcbd753)

Inefficient Record Creation By Type Portlet - GermainUX

## Validate

**1. Work on an opportunity**

In a monitored browser, open an opportunity in Lightning, work on it for a moment, and move it to the next stage.

**2. Create a record**

Click **New** on any object, such as **Cases**, fill in the form and save it.

**3. Check the KPIs**

After a few minutes, check that **Salesforce Opportunity Interval** and **Salesforce Record Creation BP** have new data.

## Troubleshooting

> [accordion] No opportunity intervals appear
>
> Check that the opportunity record page shows the **Path** component, and that the user is in Lightning Experience. GermainUX reads the current stage from the path. Intervals also need user activity on the record: opening a record and leaving it untouched records nothing.

> [accordion] A created record doesn't appear in Record Creation
>
> GermainUX starts the measurement when Salesforce opens the standard new-record form from **New**, and ends it when the user saves. Check that the user started from **New** and saved the record.

## Security and Privacy

Business process data includes:

* **Record identifiers**: the opportunity ID, and the object type of each created record.
* **Identity data**: the user and session of each interval and record creation.

To mask, anonymize or exclude this data, see [Data Privacy](https://docs.germainux.com/management/compliance-privacy-and-security/data-privacy.md).

## KPIs

| KPI | Group | Default SLA |
| - | - | - |
| **Salesforce Opportunity BP** | Conversion | 1 day |
| **Salesforce Opportunity BP Step** | Conversion | 1 hour |
| **Salesforce Opportunity Interval** | Conversion | 120 seconds |
| **Salesforce Record Creation BP** | Productivity | 120 seconds |
| **Salesforce Record Creation BP Step** | Productivity | 120 seconds |

For data models and descriptions, see [KPIs for Salesforce Monitoring](https://docs.germainux.com/integrations/salesforce-monitoring/salesforce-monitoring-kpis.md#business-process-kpis).

## Related Documentation

> [card] [Business Process Monitoring](https://docs.germainux.com/analytics/business-process-workflow-monitoring.md)
>
> How business processes work in GermainUX

> [card] [Analytics](https://docs.germainux.com/analytics.md)
>
> More Analytics Features

> [card] [Automation](https://docs.germainux.com/automation.md)
>
> More Automation Features

## Get Help

The GermainUX team can help you model your own Salesforce workflows, such as case handling or lead conversion, as business processes.

> [card] [Contact GermainUX Support](https://docs.germainux.com/getting-started/support.md)
>
> The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

> [card] Can't Find What You Need?
>
> Search all GermainUX docs with **Ctrl + K**, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.