For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Guides
    • Introduction
    • Quick Start
    • Use Cases
    • MCP Server
  • API
    • Enrich Endpoint
  • Integrations
    • Clay
    • Zapier
    • Make
    • HubSpot
    • Salesforce
    • n8n
  • Platform
    • API Keys
    • Rate Limits
    • Pricing
  • Support
    • Support
  • API Reference
    • GETGet platform stats
    • GETSearch case studies
    • POSTSemantic search
    • POSTBatch semantic search
    • GETGet case study
    • GETList companies
    • GETGet company
    • GETCompany analysis
    • GETCompany timeline
    • POSTCompare vendors
    • POSTRegister for an API key
Logocasestudies.dev
On this page
  • Option 1: Salesforce Flow + HTTP Callout
  • Option 2: Apex Trigger
  • Option 3: Use Zapier
Integrations

Salesforce

Was this page helpful?
Previous

n8n

Next
Built with

Option 1: Salesforce Flow + HTTP Callout

  1. Create a Record-Triggered Flow on Lead (After Create)
  2. Add an Action → HTTP Callout (requires Flow Builder)
  3. Configure:
    • URL: https://api.casestudies.dev/v1/enrich/{!Lead.Website}
    • Method: GET
    • Header: X-API-Key: YOUR_API_KEY
  4. Parse the response and update the Lead record

Option 2: Apex Trigger

1@future(callout=true)
2public static void enrichLead(Id leadId) {
3 Lead l = [SELECT Website FROM Lead WHERE Id = :leadId];
4 if (l.Website == null) return;
5
6 String domain = l.Website.replace('https://', '').replace('http://', '').replace('www.', '');
7 HttpRequest req = new HttpRequest();
8 req.setEndpoint('https://api.casestudies.dev/v1/enrich/' + domain);
9 req.setMethod('GET');
10 req.setHeader('X-API-Key', 'YOUR_API_KEY');
11
12 Http http = new Http();
13 HttpResponse res = http.send(req);
14 // Parse res.getBody() and update Lead fields
15}

Option 3: Use Zapier

See the Zapier guide for a no-code alternative.