---
title: Salesforce
slug: docs/salesforce
createdAt: 2025-09-08T08:33:34.403Z
---

This guide explains how to send Salesforce data to Jomablue using webhooks and Salesforce Flows. Webhooks allow Salesforce to automatically push attendee or contact information to Jomablue in real time.

By following this process, your team can:

- Automate the transfer of leads or contacts from Salesforce to Jomablue.
- Reduce manual data entry and errors.
- Track which records have been successfully sent.

The instructions cover setting up Salesforce flows, formatting the payload, sending the webhook to Jomablue, and handling errors.



### 1. Set Up a Salesforce Flow

Salesforce provides a no-code way to send webhooks using **Flows**:

1. Navigate to **Setup → Flows**.
2. Click **New Flow** and choose **Record-Triggered Flow** (when a Lead or Contact is created/updated).
3. Select the object you want to trigger on (e.g., Lead or Contact).
4. Configure the trigger conditions (e.g., Status = Registered or Send to Jomablue = FALSE).

### 3. Add a “Send HTTP Request” Action

Salesforce doesn’t natively have a webhook action, so use **“Action → Send HTTP Request”** (requires Salesforce REST integration):

1. Add an **Action** in your Flow:
   - Action Type: **Apex** (if using a custom Apex webhook action) **or** **External Services** for REST.
2. Configure:
   - **Method:** POST
   - **Endpoint URL:** Your Jomablue webhook URL
   - **Headers:**
     - Content-Type: application/json
     - Accept: application/json
     - Authentication Bearer \[your API token]
   - **Body:** Map the Salesforce fields to the JSON payload:

:::BlockQuote
\{
&#x20; "first\_name": "\{!Lead.FirstName}",
&#x20; "last\_name": "\{!Lead.LastName}",
&#x20; "email": "\{!Lead.Email}",
&#x20; "company": "\{!Lead.Company}",
&#x20; "job\_title": "\{!Lead.Title}",
&#x20; "mobile": "\{!Lead.MobilePhone}",
&#x20; "dietary\_requirements": "\{!Lead.Dietary\_Requirements\_\_c}"
}
:::

### 4. Test the Webhook

1. Create a test Lead/Contact in Salesforce with sample data.
2. Trigger the Flow and check:
   - Salesforce debug logs for the HTTP request status.
   - Jomablue system to confirm the data was received correctly.

### 5. Mark Records as Sent

- To avoid resending the same data, add a custom field in Salesforce (e.g., Sent\_to\_Jomablue\_\_c Boolean).
- Update this field to TRUE once the webhook call is successful.

### 6. Optional: Error Handling

- Use a **Decision** element in your Flow to handle failed HTTP responses.
- Log errors in a custom object or send notifications to the relevant team.

