Salesforce
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:
- Navigate to Setup → Flows.
- Click New Flow and choose Record-Triggered Flow (when a Lead or Contact is created/updated).
- Select the object you want to trigger on (e.g., Lead or Contact).
- 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):
- Add an Action in your Flow:
- Action Type: Apex (if using a custom Apex webhook action) or External Services for REST.
- 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:
{
"first_name": "{!Lead.FirstName}",
"last_name": "{!Lead.LastName}",
"email": "{!Lead.Email}",
"company": "{!Lead.Company}",
"job_title": "{!Lead.Title}",
"mobile": "{!Lead.MobilePhone}",
"dietary_requirements": "{!Lead.Dietary_Requirements__c}"
}
4. Test the Webhook
- Create a test Lead/Contact in Salesforce with sample data.
- 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.