--- title: Set up the Microsoft Dynamics 365 for Finance and Operations spoke description: Integrate the ServiceNow instance and Microsoft Dynamics 365 for Finance and Operations by creating a custom OAuth application in Microsoft Azure to authenticate ServiceNow requests.Register Microsoft Dynamics 365 for Finance and Operations as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.Modify the short description to provide spoke specific information.Create a connection record for your Microsoft Dynamics 365 for Finance and Operations. The Microsoft Dynamics 365 for Finance and Operations spoke connection and credential aliases use these connections to perform actions in Microsoft Dynamics 365 for Finance and Operations.Retrieve the metadata from Microsoft Dynamics 365 Finance and Operations and store it in your ServiceNow instance. Dynamic actions require the latest metadata from Microsoft Dynamics 365 Finance and Operations.Configure webhook to subscribe to Microsoft Dynamics 365 for Finance and Operations Spoke with a ServiceNow callback URL.Create webhook routing policy and subflow as per your requirement in the Microsoft Dynamics 365 Finance and Operations spoke.Register your ServiceNow instance in Microsoft Azure portal in order to use Microsoft Dynamics 365 Finance and Operations spoke. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/integration-hub/setup-msdynamics365-fin-ops.html release: australia product: Integration Hub classification: integration-hub topic_type: task last_updated: "2026-03-12" reading_time_minutes: 8 breadcrumb: [Microsoft Dynamics 365 for Finance and Operations Spoke, Integration Hub spokes, Build integrations, Integration Hub, Workflow Data Fabric] --- # Set up the Microsoft Dynamics 365 for Finance and Operations spoke Integrate the ServiceNow instance and Microsoft Dynamics 365 for Finance and Operations by creating a custom OAuth application in Microsoft Azure to authenticate ServiceNow requests. ## Before you begin - Request an Integration Hub subscription. - Activate the Microsoft Dynamics 365 for Finance and Operations spoke. - Role required: admin. **Note:** After configuring the connection and credential alias, make sure to retrieve the latest metadata from Microsoft Dynamics 365 Finance and Operations application. ## Register Microsoft Dynamics 365 for Finance and Operations as an OAuth provider Register Microsoft Dynamics 365 for Finance and Operations as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens. ### Before you begin Role required: admin ### Procedure 1. Navigate to **All** > **System OAuth** > **Application Registry**. 2. Open for the record for Microsoft D365 Fin and Ops Spoke OAuth. 3. On the form, fill these values.
| Field | Description |
|---|---|
| Name | Name to uniquely identify the record. For example, enter: `Microsoft Dynamics 365 for Finance and Operations OAuth` |
| Client ID | Client ID created during the Microsoft Dynamics 365 for Finance and Operations application configuration. |
| Client Secret | Client Secret created during the Microsoft Dynamics 365 for Finance and Operations application configuration. |
| Authorization URL |
OAuth authorization code endpoint. Enter: `https://login.microsoftonline.com/ |
| Token URL |
OAuth server token endpoint. Enter: `https://login.microsoftonline.com/ |
| Token Revocation URL | OAuth server token revocation endpoint. |
| Redirect URL |
OAuth callback endpoint in this format: `https:// |
| OAuth API Script | Script to customize the request and response. Select ****. |
| Logo URL | URL that contains an image to use as the application logo. |
| Default Grant Type | Grant type used to establish the token. Select **Client Credentials**. |
| Refresh Token Lifespan | Time, in seconds, that the refresh token is valid. The default time is 8,640,0000 seconds. |
| PKCE required | Option to enable public clients to require PKCE for an authorization.**Note:** You can use only **Authorization Code** as the **Default Grant type** when **PKCE** is enabled. |
| Application | Application scope that contains this record. |
| Accessible from | Application scope that this registry is accessible from. |
| Active | Option to actively use the application registry. |
| Use mutual authentication | Option to use mutual authentication for token request and revocation. This option requires a mutual authentication profile to be specified. |
| Field | Description |
|---|---|
| Name | Unique name for the webhook registry. For example, `Microsoft Dynamics 365 for Finance and Operations webhook`. |
| Description | Optional description for the webhook. |
| Generate Callback URL | Option to generate a callback URL which is used to register the webhook in the Microsoft Dynamics 365 Finance and Operations portal. |
| Generate New Secret | Option to generate a secret key for Microsoft Dynamics 365 Finance and Operations webhook.**Note:** When you generate a new secret, ensure that you generate the callback URL also after generating the secret. Record the callback URL for registering the app in Azure portal. |
| Field | Description |
|---|---|
| Label | Unique label to identify the routing policy. |
| Default answer | Option to specify if this is the default answer. Default answer is applicable when the conditions are not met.1. Click the Lookup icon. 2. Select the required subflow from the **Document:** list. **Note:** Ensure that the **Table name** is `Flow [sys_hub_flow]`. |
| Condition | Conditions to be met when the required events occur in Microsoft Dynamics 365 Finance and Operations. See [Microsoft Dynamics 365 for Finance and Operations Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/msdyn-finops-spoke.md) for information about the supported fields. |
| Answer | Subflow that has to be triggered when the specified conditions are met. |