{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":21571,"path":"integrate-applications/integration-hub/setup-sapsf-webhooks.md","title":"Set up webhook for the SuccessFactors spoke","bundle":null,"doc_type":null,"release":"australia","body":"\n# Set up webhook for the SuccessFactors spoke\n\nConfigure a webhook to subscribe to your SuccessFactors account with a ServiceNow callback URL.\n\n## Before you begin\n\n-   [Set up the SuccessFactors spoke v4.x.x](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-successfactors.md)\n-   Role required: admin\n\n## Procedure\n\n1.  Configure the default decision table.\n\n    1.  Navigate to **System Definition** &gt; **Decision Tables**.\n\n    2.  Search for the record, `Successfactors Webhook` and open it.\n\n    3.  In the **Decision Inputs** tab, open the **Webhook Event** record.\n\n    4.  In the **Choices** tab, create record for the event for which you want to subscribe. For example, enter `Employee Time Off` in **Label** and **Name** to subscribe to the Employee Time Off events.\n\n    5.  Navigate back to the `Successfactors Webhook` record.\n\n    6.  In the **Decisions** tab, open the **Default Decision** record.\n\n    7.  Select the required webhook event in **Condition** and select the subflow in **Answer**.\n\n        When the specified webhook event occurs, the associated subflow is triggered.\n\n        **Note:** You can customise the default subflow or create a subflow as per your requirement.\n\n2.  Create a webhook registry.\n\n    1.  Navigate to **SuccessFactors Spoke** &gt; **Webhook Registry**.\n\n    2.  Click **New**.\n\n    3.  On the form, enter `SuccessFactors Webhook Authentication` for **Name** and provide **Description**.\n\n        **Note:** The **Name** of the webhook registry must be `SuccessFactors Webhook Authentication`.\n\n    4.  Click **Generate Username and Password**.\n\n        Username and Password are generated and the values are displayed.\n\n    5.  Copy and record the values of the generated values for later use.\n\n3.  Copy and record the value of **Resource path**.\n\n    1.  Navigate to **System Web Services** &gt; **Scripted REST APIs**.\n\n    2.  Search for the record, `SuccessfactorsWebhook` and open it.\n\n    3.  In the **Resources** tab, click the **processWebhook** record.\n\n    4.  Copy and record the value provided in **Resource path**.\n\n4.  Configure events in your SuccessFactors instance.\n\n    1.  Log in to your SuccessFactors instance and navigate to **Admin Center** &gt; **Event Notification Subscription**.\n\n    2.  In the **External Event** tab, provide these values:\n\n        |Field|Description|\n        |-----|-----------|\n        |Endpoint URL|ServiceNow instance endpoint URL in this format: `https://<servicenow-instance>.com/<resource-path>`|\n        |Authentication|Select **Basic**.|\n        |User|User name generated when the webhook registry is created.|\n        |Password|Password when the webhook registry is created.|\n\n    3.  Configure the subscriber in the **Subscriber** tab as per your requirement.\n\n    4.  Select the required **Service Event Bus Topic** in the **SEB External Event** tab as per your requirement and select the events for which you want to receive notifications. For example, `Employee Time Off`.\n\n\n"}}