---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Set up a bidirectional webhook

# Set up a bidirectional webhook {#ariaid-title1}

Release version: Brazil  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Configure a webhook to subscribe to Salesforce events with a ServiceNow callback URL.

## Before you begin

* Role required: admin
{#setup-webhook-salesforce__ul_c2t_pt5_fnb}

## Procedure

1. Log in as an administrator to your Salesforce instance.
2. Obtain the Salesforce instance details.  
   For more information, see the [View instance information for your Salesforce Organization](https://help.salesforce.com/articleView?id=000322728&language=en_US&type=1&mode=1) knowledge article in [Salesforce Trailblazer forum](https://success.salesforce.com/).
   1. If you don't have Salesforce custom domains, obtain the Salesforce instance name from the Company Information page.
   2. If you have custom domains, navigate to Domain ManagementMy Domain and copy the domain name.  
      For example, if the complete domain name on the page is newdomain-customdomain.my.salesforce.com, copy and record the value <kbd class="ph userinput">newdomain-customdomain</kbd>.
   {#setup-webhook-salesforce__substeps_pqv_tv5_fnb}
3. Obtain the 18-digit Organization ID of your Salesforce instance.
   1. Navigate to the Developer Console in your Salesforce instance and run this query:  

          Select Id from Organization

   2. Copy and record the value of the 18-digit Organization ID.
   {#setup-webhook-salesforce__substeps_tzv_lz5_fnb}
4. Log in to your ServiceNow instance.
5. Create a webhook registry.
   1. Navigate to Salesforce Webhook RegistrySalesforce Webhook Registries.
   2. Click New.
   3. On the form, fill these values:  
      {#setup-webhook-salesforce__table_tmy_d1v_fnb__entry__2}

      | Field | Description |
      |-|-|
      | Organization ID | 18-digit Organization ID of your Salesforce instance. |
      | Instance Name | Name of the Salesforce instance obtained from the Company Information page or custom domain of the Salesforce instance obtained from Domain ManagementMy Domain. |
      [ ]

      {#setup-webhook-salesforce__table_tmy_d1v_fnb}
   4. Right-click the form header and click Save.
   {#setup-webhook-salesforce__substeps_pst_5x5_fnb}
6. Obtain the resource path from your ServiceNow instance.
   1. Navigate to System Web ServicesScripted Web ServicesScripted REST APIs.
   2. Open the record, Salesforce Webhook Callbacks.
   3. In the Resources tab, click the Default Callback record.
   4. Copy and record the value of Resource path.  
      The required ServiceNow endpoint URL is: <kbd class="ph userinput">https://&lt;intance-name&gt;.service-now.com/&lt;resource-path&gt;</kbd>
   {#setup-webhook-salesforce__substeps_e5k_1z5_fnb}
7. Configure the default subflows or create customsubflows.  
   These subflows are triggered when the required events occur in Salesforce instance. For more information, see [Building subflows](https://www.servicenow.com/docs/access?context=subflows&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
8. Configure the webhook routing policy.
   1. Navigate to System DefinitionDecision Tables.
   2. Open the record, Salesforce Decision Webhook Policy.
   3. In the Decisions tab, click New.
   4. On the form, fill these values:  
      {#setup-webhook-salesforce__table_wd3_zcv_fnb__entry__2}

      | Field | Description |
      |-|-|
      | Label | Unique label to identify the routing policy. |
      | Answer | Subflow that must be triggered when the specified conditions are met. |
      | Default Answer | Option to specify if this is the default answer. |
      | Condition | Conditions to be met when the required events occur in Salesforce. |
      [ ]

      {#setup-webhook-salesforce__table_wd3_zcv_fnb}  
      Note:  
      By default, these Salesforce objects are supported in the webhook routing policies:
      * Account
      * Case
      * Contract
      * Opportunity

      {#setup-webhook-salesforce__ul_cnr_g2v_fnb}You can configure the default decision table to support other Salesforce objects as per your requirement.
   5. Click Save.
   {#setup-webhook-salesforce__substeps_pzv_4cv_fnb}
9. From your Salesforce instance, create outbound message.  
   For information about creating the outbound message, see [Outbound Message Actions](https://help.salesforce.com/articleView?id=workflow_managing_outbound_messages.htm&type=5) in [Salesforce Trailblazer forum](https://success.salesforce.com/).
10. In the Endpoint URL, enter the endpoint URL in this format: https://\<intance-name\>.service-now.com/\<resource-path\>.
{#setup-webhook-salesforce__steps_lzk_jv5_fnb}

*[\>]: and then


