You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/actions-webhook-extensible/microsoft-integration-recipe.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Microsoft Dynamics 365 (Sales Hub) Integration Recipe
3
3
---
4
4
5
-
This recipe will guide you through how to set up a custom destination for Microsoft Dynamics 365 (Sales) using Twilio Segment’s Extensible Webhook feature.
5
+
This recipe will guide you through how to set up a custom destination for [Microsoft Dynamics 365 (Sales)](https://www.microsoft.com/en-us/dynamics-365/products/sales){:target="_blank"} using Twilio Segment’s [Extensible Webhooks](https://segment.com/docs/connections/destinations/catalog/actions-webhook-extensible/){:target="_blank"} feature.
6
6
7
7
## Prerequisites
8
8
@@ -35,20 +35,21 @@ To integrate Microsoft Dynamics 365 with Twilio Segment, ensure you have the fol
35
35
36
36
For authentication, you need to first create an Azure application that can authenticate users to provide access to Microsoft Dynamics API. See [Microsoft's documentation](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=client-secret){:target="_blank"} for details on how to create an application and how to get the client secret that will later be used for authentication.
37
37
38
-
The redirect URI for your application is https://app.segment.com/oauth-service/webhook/callback.
38
+
The redirect URI for your application is `https://app.segment.com/oauth-service/webhook/callback`.
39
39
40
-
To connect the Azure app with the Dynamics instance, go to the Power Platform Admin Center.
41
-
Here you will need to create new app users associated with a business unit, and provide security roles.
40
+
To connect the Azure app with the Dynamics instance, go to the Power Platform Admin Center. Here you will need to create new app users associated with a business unit, and provide security roles.
42
41
43
42
Once you have successfully created an Azure web application and associated it with a Dynamics environment, you can proceed to authentication in Segment.
44
43
45
44
1. Navigate to the settings page of the webhook destination in Segment.
46
-
2. Select OAuth 2.0 and select Authorization Code.
45
+
2. Select **OAuth 2.0** and select **Authorization Code**.
47
46
3. Enter the following credential details from your web app or as listed below:
- Access Token URL: `https://login.microsoftonline.com/<directory_id>/oauth2/v2.0/token`. Replace `<directory_id>` with your Azure AD tenant ID. You can be find this in the Entra admin center. For detailed steps, see [Microsoft's guide](https://learn.microsoft.com/en-us/entra/fundamentals/how-to-find-tenant){:target="_blank"}.
50
+
- Example URL with a sample directory UUID: `https://login.microsoftonline.com/861e4762-e528-4faf-ad95-70847a9efbe7/oauth2/v2.0/token`
51
+
- Scope: `https://<dynamics>/.default`. Replace `<dynamics>` with the domain of your Dynamics 365 instance. This appears in your web browser's address bar when using your app.
52
+
- Example URL for a Dynamics 365 instance: `https://org2fd4b414.crm.dynamics.com/.default`.
52
53
4. Click **Connect** to set up the OAuth connection with Microsoft.
53
54
54
55
Authentication will take place if the configurations are correct and the access token will automatically be generated without the need for user login.
@@ -91,7 +92,7 @@ To create or update the Account entity only, you can skip this step and directly
91
92
1. Create a new Mapping in the Mappings tab and select the **Send** HTTP action.
92
93
2. Choose which events you want to send to Google Search Ads 360 API using the Event filters.
93
94
3. Fill out mapping fields:
94
-
- Specify the URL: [Organization URI]/api/data/v9.2/accounts (this is for creating new accounts)
95
+
- Specify the URL: `[Organization URI]/api/data/v9.2/accounts` (this is for creating new accounts)
95
96
4. Use the mapping interface and search for the “body” parameter that was created in the insert function to select the transformed object that can be sent as the event body.
96
97
5. Turn off batching for this operation.
97
98
@@ -103,11 +104,11 @@ To create or update the Account entity only, you can skip this step and directly
103
104
#### Troubleshooting
104
105
105
106
If the test fails:
106
-
-review the authentication details and data mappings.
107
-
-check for error messages in Segment and Search Ads.
107
+
-Review the authentication details and data mappings.
108
+
-Check for error messages in Segment and Search Ads.
108
109
109
110
### 7. Save and enable the destination
110
111
111
112
1. Once the test is successful, click **Save** to store your configuration.
112
113
2. Toggle the destination to Enable to start sending live data to Microsoft Dynamics 365.
113
-
3. Monitor the data flow to ensure that events are being delivered as expected.
114
+
3. Monitor the data flow to ensure that events are being delivered as expected.
0 commit comments