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

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Set up bi-directional webhook

# Set up a bi-directional webhook for the Microsoft OneDrive spoke {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure a webhook to subscribe to OneDrive with a ServiceNow callback
URL.

## Before you begin

* Request an Integration Hub subscription.
* Activate the Microsoft OneDrive spoke.
* Role required: admin.
{#setup-onedrive-webhooks__ul_ew3_trl_fpb}

## Register a OneDrive webhook in ServiceNow {#ariaid-title2}

Register a OneDrive webhook in ServiceNow to notify the ServiceNow app when certain
events occur in OneDrive.

### Before you begin

Role required: admin.

### Procedure

1. Navigate to AllMicrosoft OneDrive SpokeOneDrive Webhook Registries.
2. Click New.
3. On the form, fill in the fields.  
   {#register-onedrive-webhook__table_rzb_htl_fpb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Unique name to identify the record. For example, <kbd class="ph userinput">OneDrive webhook</kbd>. |
   | Description | Description of the record. |
   | Path | OneDrive path. By default, this path is set to <kbd class="ph userinput">api/sn_onedrive_spoke/onedrive/subscription</kbd> |
   | Secret Key | Secret key for accessing OneDrive webhook. Note: The Secret Key field value is auto-populated when the webhook registry record is saved. |
   [Table 1. Microsoft OneDrive Webhook Registries]

   {#register-onedrive-webhook__table_rzb_htl_fpb}
4. Right-click the form header and click Save.
5. Click CallBack URL.  
   The system displays the webhook callback URL.
6. Copy and record the webhook callback URL.

## Customize OneDrive bi-directional webhook {#ariaid-title3}

Create a webhook routing policy and subflow according to your
requirement.

### Before you begin

Role required: admin

### About this task

Routing policies in the OneDrive Webhook Routing Policy module triggers the subflows and notifies the ServiceNow instance when certain events occur in your OneDrive account. See OneDrive spoke for information about the fields that the routing policy and subflows support.

### Procedure

1. Navigate to AllFlow DesignerDesigner.
2. Click Subflows.
3. Create a copy of any of the default subflows, for example, Sync Changes.
4. Customize the subflow according to your requirement and publish it.  
   See [Building subflows](https://www.servicenow.com/docs/access?context=subflows&version=australia&pubname=australia-build-workflows&ft:locale=en-US) for more information about creating and using subflows, and [OneDrive spoke v1.6](https://www.servicenow.com/docs/pIHqT5fJ1HTmrSq~0p3TfQ "Automate file and folder management and collaboration in Microsoft OneDrive. Adds Microsoft OneDrive data to your ServiceNow instance.") for information about the supported subflows.
5. Navigate to Microsoft OneDrive SpokeOneDrive Webhook Routing Policy.
6. Click New.
7. On the form, fill in the fields.  
   {#customize-onedrive-webhook__table_yvd_g5r_fpb__entry__2}

   | Field | Description |
   |-|-|
   | Label | Unique label to identify the routing policy. |
   | Default answer | Option to specify if this is the default answer. The default answer is applicable when the conditions are not met. 1. Click the lookup icon (![Lookup icon]()). 2. Select the required subflow from the Document list. Note: Ensure that the Table name is <kbd class="ph userinput">Flow [sys_hub_flow]</kbd>. {#customize-onedrive-webhook__ol_ijl_45r_fpb} |
   | Condition | Conditions to be met when the required events occur in OneDrive. |
   | Answer | Subflow which is triggered when the specified conditions are met. |
   [Table 2. Decision form]

   {#customize-onedrive-webhook__table_yvd_g5r_fpb}
8. Click Submit.

### Result

The routing policy and subflow are created.

*[\>]: and then


