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

# Synthetic Monitoring for Salesforce

> Run any Salesforce workflow as a synthetic scenario on a schedule, and know it's broken or slow before users do.

Components
[`Engine`](https://docs.germainux.com/deploy/germain-ux-engine)
[`RPA Bot Recorder`](https://docs.germainux.com/deploy/germain-ux-rpa-bot-recorder)

Availability
2022.1 or later

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

> [card] [Before You Start](#before-you-start)
>
> Engine, browser, test user

> [card] [Set It Up](#set-it-up)
>
> Record, deploy, schedule

> [card] [KPIs](#kpis)
>
> Scenario and click timings

## Overview

GermainUX runs any Salesforce workflow as a synthetic scenario. You record the clicks once with the RPA Bot Recorder, and a GermainUX Engine replays them on a schedule in a headless browser, like a user who never sleeps. When a step breaks or slows down, you get an alert before users report it, and the response time of every step is measured each run.

In this example, a broken login page slows all three example scenarios at once. Their average run time rises by about a third against the same hours on the previous days (**VS RECENT**):

![Synthetic Scenario Analysis for 25 Nov, 07:00 to 13:00 UTC: average duration 17.581 s against 13.246 s in VS RECENT (up 32.7%), with Salesforce Login, Salesforce New Opportunity and Salesforce New Case all up against recent days](https://mintcdn.com/germain-ux/TKtIlTY_2RarfR4J/images/main/salesforce-synthetic-monitoring/synthetic-scenario-login-outage.png?fit=max\&auto=format\&n=TKtIlTY_2RarfR4J\&q=85\&s=f2b394f2874d62f582deaab454e52128)

Synthetic Scenario Analysis During a Salesforce Login Problem - GermainUX

Everything is configurable: the steps, the checks, the schedule, the Engines that run them and the SLAs. GermainUX ships three scenarios as ready-made examples: log in, create an opportunity and create a case. They're described in detail in [How It Works](#how-it-works).

### Other Salesforce Scenarios You Can Monitor

These are examples of scenarios you record yourself. Pick the workflows your business can't afford to lose.

| Scenario | What it checks |
| - | - |
| **Single sign-on login** | Users can log in through your identity provider, and the Lightning home page loads |
| **Global search** | Searching for a known account returns it, and its record page opens |
| **Lead conversion** | A test lead can be converted into an account, contact and opportunity |
| **Key report or dashboard** | A report or dashboard that teams rely on opens within its expected time |
| **Integration round trip** | A record saved in Salesforce shows the data an integration adds, such as a price or an order number from your ERP |

Run the same scenario from Engines in several locations to compare response times by site or network.

### Questions It Answers

* Can users log in to Salesforce right now?
* How long do login, search and record creation take, from outside Salesforce?
* Did a release break a critical form or workflow?
* Is a slowdown in Salesforce, or only for some locations or users?

## How It Works

The three shipped examples show what a scenario does:

| Scenario | What it does |
| - | - |
| **Salesforce Synthetic Login** | Opens the login page, enters the username and password, clicks **Log In**, then opens the user menu and clicks **Log Out** |
| **Salesforce Synthetic New Opportunity** | Logs in, opens **Opportunities**, clicks **New**, then clicks **Save** |
| **Salesforce Synthetic New Case** | Logs in, opens **Cases**, clicks **New**, then clicks **Save** |

Each scenario runs in Microsoft Edge in headless mode on the Engine you choose. Every run records one **Synthetic Scenario** with the total time and success, and one **Synthetic Click** for each step.

Because each step is its own **Synthetic Click**, you can compare one step across days. Here, the **Click on Save** stage took 3.9 seconds on average one afternoon, against 1.5 seconds at the same hours the day before:

![Synthetic Click Compare filtered to Click on Save: 3.876 s on 25 Nov 13:00 to 22:30 against 1.511 s on 24 Nov at the same hours, 2.6 times slower, with Duration as the top difference](https://mintcdn.com/germain-ux/TKtIlTY_2RarfR4J/images/main/salesforce-synthetic-monitoring/synthetic-click-slow-case-save.png?fit=max\&auto=format\&n=TKtIlTY_2RarfR4J\&q=85\&s=a4a0e407edbea5859048e444588df7cd)

Compare of the Click on Save Stage Across Two Days - GermainUX

To check other workflows, record your own scenario with the [RPA Bot Recorder](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/record-a-synthetic-scenario.md).

## Before You Start

* A GermainUX Engine that can reach your Salesforce login page. See [GermainUX Engine](https://docs.germainux.com/deploy/germain-ux-engine.md).
* Microsoft Edge and a matching Edge WebDriver on the Engine host. See [Microsoft Edge in Headless Mode](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/configure-a-synthetic-scenario.md#microsoft-edge-in-headless-mode).
* A dedicated, low-privilege Salesforce test user that logs in with a username and password, without a verification step. Use a sandbox org when you can.

## Set It Up

To monitor your own Salesforce workflow, record it with the [RPA Bot Recorder](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/record-a-synthetic-scenario.md), then deploy and schedule it as in the last two steps below.

To use a shipped example:

**1. Open the scenario**

In the left menu, go to **Settings > Actions > Click**, and open **Salesforce Synthetic Login**, **Salesforce Synthetic New Opportunity** or **Salesforce Synthetic New Case**.

**2. Replace the placeholders**

In the scenario's **Stages**, replace `PROVIDE_SFDC_URL` with your Salesforce login URL, and `PROVIDE_USERNAME` and `PROVIDE_PASSWORD` with the test user's credentials. Replace `PROVIDE_DRIVER_PATH` with the Edge WebDriver path on the Engine host, such as `/usr/local/bin/msedgedriver`.

![Settings, Actions, Click with the Salesforce Synthetic Login scenario open on its Open stage: Type Url and Value PROVIDE\_SFDC\_URL, highlighted](https://mintcdn.com/germain-ux/MpD4CZaeACQiUVi-/images/main/salesforce-synthetic-monitoring/synthetic-login-open-stage.png?fit=max\&auto=format\&n=MpD4CZaeACQiUVi-\&q=85\&s=dc29be96d6e0c2b6a71cc88064758559)

Open Stage of the Salesforce Synthetic Login Scenario - GermainUX

**3. Deploy it to an Engine and set the schedule**

The scenarios have no schedule out of the box. Select the Engine that runs the scenario and how often it runs. See [Deploy a Synthetic Scenario](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/deploy-synthetic-scenario.md).

**4. Run it once**

Run the scenario manually and check the result before you rely on its schedule.

## Validate

After the first scheduled runs, check that **Synthetic Scenario** and **Synthetic Click** have new data for the scenario, and that the runs succeed. See [Monitor a Synthetic Scenario](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/monitor-a-synthetic-scenario.md).

## Troubleshooting

> [accordion] The login step fails
>
> Check the login URL and the test user's credentials. A user with multi-factor authentication or a verification email can't log in from a scenario.

> [accordion] Save fails on the New Opportunity or New Case form
>
> The scenarios click **Save** on the form as Salesforce opens it. If your org requires fields on the form, or uses a record type selector first, record your own version of the scenario with the RPA Bot Recorder.

For browser and WebDriver problems, see [Troubleshoot a Synthetic Scenario](https://docs.germainux.com/automation/user-click-synthetic-user-scenario/troubleshoot-synthetic-scenario.md).

## Security and Privacy

The test user's username and password are stored as values in the scenario steps. Use a dedicated, low-privilege test user for synthetic monitoring, never a personal or administrator account, and restrict who can edit the scenarios in GermainUX.

Synthetic results include the Salesforce URLs the scenario opened and the error messages it met. To mask, anonymize or exclude this data, see [Data Privacy](https://docs.germainux.com/management/compliance-privacy-and-security/data-privacy.md).

## KPIs

| KPI | What it measures | Default SLA |
| - | - | - |
| **Synthetic Scenario** | One run of a scenario: total time and success | 15 seconds |
| **Synthetic Click** | One step of a scenario | 5 seconds |

## Related Documentation

> [card] [Synthetic User Scenarios](https://docs.germainux.com/automation/user-click-synthetic-user-scenario.md)
>
> How synthetic scenarios 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 record and deploy synthetic scenarios for your own critical Salesforce workflows.

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