Skip to main content

Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See Getting Started on the Salesforce connector page.

Configure Outbound Messages

Salesforce delivers event notifications via Outbound Messages — SOAP/XML payloads sent to an HTTP endpoint whenever a record is created or updated. Each sObject and trigger type requires its own Outbound Message pointing at the StackOne Native Webhook URL, with an event identifier appended as a query parameter using & (the Native Webhook URL already carries its own ?token=... query parameter).

1

Retrieve StackOne Native Webhook URL

The Native Webhook URL is generated once a connector profile has been set up. You will paste this into Salesforce Setup.

  • Open the connector profile.
  • Copy the value from Native Webhook URL.
2

Sign in to Salesforce Setup

Sign in to your Salesforce account and click the Setup ⚙ icon in the top-right menu. Navigate to Platform Tools > Process Automation > Workflow Actions > Outbound Messages.

3

Select the object

Click New Outbound Message. On Step 1: Select object, choose the Object you want to track (for example, Account, Contact, Lead, Opportunity, Case, Task, or User) and click Next.

The New Outbound Message Step 1 Select object screen with the Object dropdown highlighted
4

Configure the Outbound Message

On Step 2 : Configure Outbound Message, fill in the Name and Endpoint URL fields.

  • Name: a descriptive name, for example StackOne Account Updated.
  • Endpoint URL: paste the Native Webhook URL and append &event=<sobject>.<operation> — for example, &event=account.updated. The Native Webhook URL already carries its own ?token=... query parameter, so the event parameter must be joined with &, never a second ?, or the token is dropped and no event is delivered. Do not append a record_id merge field (e.g. {!Account.Id}) — Salesforce rejects it with “Unable to parse URI”; the record ID is read from the notification body instead.
  • User to send as: leave the default, or choose an integration user.
The Configure Outbound Message screen with the Name and Endpoint URL fields highlighted
5

Select the fields to send

Under Account fields to send (the field list is named for the object you selected), move the fields you want included in the notification payload from Available Fields to Selected Fields using Add, then click Save.

The Available Fields and Selected Fields pickers with Selected Fields highlighted
6

Repeat for each event type

Create a separate Outbound Message for each sObject and operation you want to track.

  • For created events: append &event=<sobject>.created to the endpoint URL.
  • For updated events: append &event=<sobject>.updated to the endpoint URL.
  • Supported events: account.created, account.updated, contact.created, contact.updated, lead.created, lead.updated, opportunity.created, opportunity.updated, case.created, case.updated, task.created, task.updated, user.created, user.updated.

Create a Workflow Rule to trigger the Outbound Message

An Outbound Message only fires when a Workflow Rule’s criteria are met. Create one Workflow Rule per Outbound Message, on the same object.

1

Select the object

Navigate to Platform Tools > Process Automation > Workflow Rules and click New Rule. If a Flow Builder prompt appears, click Continue with Workflow Rules. On Step 1: Select object, choose the same Object as the Outbound Message and click Next.

The New Workflow Rule Step 1 Select object screen with the Object dropdown highlighted
2

Set the rule name and criteria

On Step 2: Configure Workflow Rule, fill in the Rule Name and choose when the rule evaluates.

  • Rule Name: a descriptive name, for example StackOne Account Updated Trigger.
  • Evaluation Criteria: select created for insert-only events, or created, and every time it’s edited for update events.
  • Rule Criteria: set Run this rule if the to criteria are met and configure any filters, or choose formula evaluates to true and enter true to fire on every record.
  • Click Save & Next.
The Configure Workflow Rule screen with the Rule Name field and Evaluation Criteria highlighted
3

Add the Outbound Message as a workflow action

On Step 3: Specify Workflow Actions, click Add Actions, then choose Select Existing Action from the menu.

The Add Actions menu with Select Existing Action highlighted
4

Choose the Outbound Message

On the Select Existing Actions screen, set the Action Type Search dropdown to Outbound Message, select the message you created from Available Actions, move it to Selected Actions using Add, then click Save.

5

Activate the rule

Click Done. On the Workflow Rule Detail page, click Activate — a Workflow Rule only fires its Outbound Message while it is active.

The Workflow Rule Detail page with the Activate button highlighted

Test the Outbound Message

Navigate back to Outbound Messages, open the message you created, and click Send Test.

1

Verify delivery

A successful test confirms the endpoint is reachable and returns a SOAP ACK response. If the test fails, verify the Endpoint URL is correct and the connector profile is active.

Available webhook events

The following Salesforce events can be enabled. Only events you build an Outbound Message and Workflow Rule for are delivered — Salesforce does not send events you have not wired up.

1

Connectivity check

Fired when the webhook is invoked with no request body, or with &event=ping — used to confirm the receiver endpoint is reachable.

  • Active Check (ping) — fired when the webhook is invoked for a connectivity check; responds with a SOAP ACK so the admin can confirm the receiver endpoint is reachable.
2

Account events

Events related to Account records.

  • Account Created (account.created) — fired when a Salesforce Account record is inserted.
  • Account Updated (account.updated) — fired when a Salesforce Account record is updated.
3

Contact events

Events related to Contact records.

  • Contact Created (contact.created) — fired when a Salesforce Contact record is inserted.
  • Contact Updated (contact.updated) — fired when a Salesforce Contact record is updated.
4

Lead events

Events related to Lead records.

  • Lead Created (lead.created) — fired when a Salesforce Lead record is inserted.
  • Lead Updated (lead.updated) — fired when a Salesforce Lead record is updated.
5

Opportunity events

Events related to Opportunity records.

  • Opportunity Created (opportunity.created) — fired when a Salesforce Opportunity record is inserted.
  • Opportunity Updated (opportunity.updated) — fired when a Salesforce Opportunity record is updated.
6

Case events

Events related to Case records.

  • Case Created (case.created) — fired when a Salesforce Case record is inserted.
  • Case Updated (case.updated) — fired when a Salesforce Case record is updated.
7

Task events

Events related to Task records.

  • Task Created (task.created) — fired when a Salesforce Task record is inserted.
  • Task Updated (task.updated) — fired when a Salesforce Task record is updated.
8

User events

Events related to User records.

  • User Created (user.created) — fired when a Salesforce User record is inserted.
  • User Updated (user.updated) — fired when a Salesforce User record is updated.

Delivery format

Details of how Salesforce delivers events to StackOne.

1

SOAP envelope payloads

Salesforce delivers each Outbound Message as a SOAP/XML envelope containing the fields you selected in Fields to Send. StackOne forwards the raw XML body as the event payload, reads the record ID from the SOAP envelope itself, and routes the event to the matching handler using the event query parameter on the endpoint URL.

Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.