---
title: Simple Email Trigger From CRM
slug: detected-apis/simple-email-trigger-from-crm
docTags: 
createdAt: 2025-05-27T08:57:35.540Z
---

This flow triggers an email notification to a customer from a lead/account/opportunity from the CRM and ensures the right references are set to link the Detected profile to the record in the CRM.

# General Flow

- Lead / Account / Opportunity created in the CRM
- CRM triggers the onboarding email to the customer with a unique reference included for example: `https://onboard.abc.com?customer_ref={crm-reference-here}`
- Customer follows the link and onboards into Detected
- Customer completes onboarding with data synced back to the CRM
- Compliance complete workflows and make approve / decline decision with data synced back to the CRM

# Data Flow

```mermaid
---
config:
  theme: redux-dark
  look: classic
  layout: dagre
---
flowchart TB
 subgraph extSystem["CRM"]
        extSystem1(["Create lead/account/opportunity etc"])
        extSystem3(["Trigger Onboarding via email using bespoke weblink"])
  end
 subgraph OnboardingPortal["Onboarding Portal"]
        OnboardingLogin(["Logs In"])
        OnboardingFind(["Find / Confirm Entity"])
        OnboardingCompleteActions(["Complete Onboarding Tasks"])
        OnboardingSubmit(["Submit Profile"])
  end
 subgraph CaseManagement["Case Management"]
        CaseEdd(["Optional - Additional Information Required"])
        CaseReview(["Approval Decision"])
  end
 subgraph CRM["CRM"]
        CRMCreate(["Lead/Opportunity/Account"])
  end
 subgraph Detected["Detected"]
        OnboardingPortal
        CaseManagement
  end
    Customer((("Customer"))) -- "2.Visits Onboarding Portal using bespoke link" --> OnboardingPortal
    OnboardingFind --> OnboardingCompleteActions
    OnboardingCompleteActions --> OnboardingSubmit
    OnboardingSubmit --> CaseManagement
    Compliance((("Compliance"))) -- "3.Complete review workflows" --> CaseManagement
    CaseReview -- "6.Create / Update" --> CRM
    n1((("Customer"))) -. "5.Completes <br>additional<br> information" .-> OnboardingPortal
    CaseEdd -. "4.Notified by email" .-> n1
    OnboardingLogin --> OnboardingFind
    extSystem1 --> extSystem3
    Sales((("Sales"))) --> extSystem
    extSystem3 -- "1.Send link to customer" --> Customer

    style CaseEdd stroke-width:1px,stroke-dasharray: 1
```

