> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesforce WSDL Webhook Event

Salesforce allows you to configure WSDL outbound messages, which send information to a third-party platform like Blink Ops in XML format.
Once outbound messaging is set up, a message is sent to the specified endpoint URL whenever a triggering event occurs.
This message contains the specific fields you selected when creating the outbound message.

## Set Salesforce Webhook

Configuring webhooks in Salesforce involves creating new [Outbound Messages](#create-outbound-message) and setting up a [Trigger Flow](#create-new-flow). For detailed information on outbound messages, refer to [Salesforce Documentation](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_understanding.htm).

### Create Outbound Message

1. Log in to your **Salesforce** account, and go to **Setup**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/setup.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=4a79e06234f6e08a05586f3b17b05ffc" alt="Salesforce_setup" width="3398" height="802" data-path="img/Salesforce/setup.png" />

2. On the left hand search bar, search for **Outbound Messages**. Enter the link under **Workflow and Approvals**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/outbound_search.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=a9fcc8a936b61056a93208e5bc68ba48" alt="Salesforce_search" width="1722" height="1068" data-path="img/Salesforce/outbound_search.png" />

3. Click **New Outbound Message**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/new_message.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=182e3beebe6ff18eaf5c15f2e1b868f0" alt="Salesforce_new_message" width="2032" height="504" data-path="img/Salesforce/new_message.png" />

4. Choose the **object** that includes the fields you want to retrieve when the webhook is triggered and click **Next**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/message_object.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=f33f3a6a9be30c099844e8f16d34c0d2" alt="Salesforce_message_object" width="2960" height="588" data-path="img/Salesforce/message_object.png" />

5. Provide the message details, including the **name**, **endpoint URL**, and the **object fields** you wish to retrieve.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/message_details.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=2c9b48ae1da726e27d5389711b864fd5" alt="Salesforce_message_details" width="2950" height="1342" data-path="img/Salesforce/message_details.png" />

<Info>
  **A reminder**: The Endpoint URL is taken from the Salesforce webhook setup in Blink. For further information on webhooks, please refer to [Blink's Webhooks documentation](/docs/workflows/building-workflows/triggers/event-based-triggers/webhooks).

  <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/webhook_url.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=2dd9b8a521b98020900b2deb8744bb03" alt="Salesforce_webhook_url" width="1090" height="857" data-path="img/Salesforce/webhook_url.png" />
</Info>

6. Once done, you will see the new created message on the messages list.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/message_created.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=7eb27faa7c6e5d05e5b01cfb28b2899f" alt="Salesforce_message_created" width="526" height="510" data-path="img/Salesforce/message_created.png" />

### Create New Flow

7. Go back to the search bar on the left, and search for **flows**. Click on the link under **Workflow and Approvals**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/flows_search.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=c1fee32b218b027c522b12b35ed22a85" alt="Salesforce_flows_search" width="444" height="660" data-path="img/Salesforce/flows_search.png" />

8. Click **New Flow**

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/newflow.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=832a223062b96ffa372aeab904aedd48" alt="Salesforce_new_flow" width="1874" height="646" data-path="img/Salesforce/newflow.png" />

9. On the flows platform, choose **Start From Scratch** and click **Next**.

   <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/new_flow.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=2a71f0fdb4158a0bafef7263708a5d0f" alt="Salesforce_scratch" width="2404" height="610" data-path="img/Salesforce/new_flow.png" />

10. Select **Record Triggered Flow** type and click **Create**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/flow_type.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=e9efb6aacf221dbb03db9f1027fcbb91" alt="Salesforce_flow_type" width="2396" height="1658" data-path="img/Salesforce/flow_type.png" />

11. Select the **object** you want to trigger the flow on and specify the **trigger type**. Under **Optimize the Flow for**, select **Actions and Related Records**. Once done, click **Save**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/set_flow.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=9fc165361b6a2c3fcab8141eeaec71dd" alt="Salesforce_set_flow" width="3444" height="1760" data-path="img/Salesforce/set_flow.png" />

12. In the **Save Flow** window that appears, enter a **name** for the flow and click **Save**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/save_flow.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=c7554ba71a0f710bfdf243fb810b5fd7" alt="Salesforce_save_flow" width="1678" height="672" data-path="img/Salesforce/save_flow.png" />

13. In the flow diagram, click the **+** icon below the "Run Immediately" label. Then, choose **Action**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/action.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=02233782e2f8f0508b95ef1a62653c50" alt="Salesforce_action" width="1388" height="1304" data-path="img/Salesforce/action.png" />

14. In the **Search Action** Bar, search for **Outbound Message**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/outbound_action.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=6f1fa08ca309e803f972dd4702d5fc3b" alt="Salesforce_outbound_action" width="806" height="918" data-path="img/Salesforce/outbound_action.png" />

15. Select your recently added message.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/user_update.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=478ef73118b504d483f65c31853c097b" alt="Salesforce_user_update" width="800" height="628" data-path="img/Salesforce/user_update.png" />

16. Choose a label for the action and click **Save**.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/label_aciton.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=c16e04128c455976ee2af10cb666cee3" alt="Salesforce_label_action" width="1280" height="962" data-path="img/Salesforce/label_aciton.png" />

17. **Activate** your flow.

    <img src="https://mintcdn.com/blinkops-2/yuv0j7RWJFirVOzo/img/Salesforce/activate.png?fit=max&auto=format&n=yuv0j7RWJFirVOzo&q=85&s=d4b45a0775496f374f3b32cf36be044f" alt="Salesforce_activate" width="1288" height="934" data-path="img/Salesforce/activate.png" />
