Skip to content

Commit f9f9984

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into release-build-synapse-sqldw
2 parents 10d6ae3 + 9c1922d commit f9f9984

39 files changed

+514
-270
lines changed

articles/cognitive-services/text-analytics/quickstarts/go-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.author: aahi
1414

1515
# Quickstart: Use the Text Analytics client library for Go
1616

17-
[Reference documentation](https://docs.microsoft.com/python/api/overview/azure/cognitiveservices/textanalytics?view=azure-python) | [Library source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics) | [Package (GitHub)](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/textanalytics) | [Samples](https://github.com/Azure-Samples/cognitive-services-quickstart-code)
17+
[Reference documentation](https://godoc.org/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/textanalytics) | [Library source code](https://github.com/Azure/azure-sdk-for-go/tree/master/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics) | [Package (GitHub)](https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/v2.1/textanalytics) | [Samples](https://github.com/Azure-Samples/cognitive-services-quickstart-code)
1818

1919
> [!NOTE]
2020
> This quickstart only applies to Text Analytics version 2.1. Currently, a v3 client library for Go is unavailable.
@@ -84,7 +84,7 @@ The response object is a list containing the analysis information for each docum
8484

8585
## Code examples
8686

87-
These code snippets show you how to do the following with the Text Analytics client library for Python:
87+
These code snippets show you how to do the following with the Text Analytics client library for Go:
8888

8989
* [Authenticate the client](#authenticate-the-client)
9090
* [Sentiment Analysis](#sentiment-analysis)

articles/cognitive-services/text-analytics/quickstarts/ruby-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Use the Text Analytics client library to perform:
2626
> [!NOTE]
2727
> This quickstart only applies to Text Analytics version 2.1. Currently, a v3 client library for Ruby is unavailable.
2828
29-
[Reference documentation](https://docs.microsoft.com/python/api/overview/azure/cognitiveservices/textanalytics?view=azure-python) | [Library source code](https://github.com/Azure/azure-sdk-for-ruby/tree/master/data/azure_cognitiveservices_textanalytics) | [Package (RubyGems)](https://rubygems.org/gems/azure_cognitiveservices_textanalytics) | [Samples](https://github.com/Azure-Samples/cognitive-services-quickstart-code)
29+
[Library source code](https://github.com/Azure/azure-sdk-for-ruby/tree/master/data/azure_cognitiveservices_textanalytics) | [Package (RubyGems)](https://rubygems.org/gems/azure_cognitiveservices_textanalytics) | [Samples](https://github.com/Azure-Samples/cognitive-services-quickstart-code)
3030

3131
<a name="HOLTop"></a>
3232

@@ -78,7 +78,7 @@ The response object is a list containing the analysis information for each docum
7878

7979
## Code examples
8080

81-
These code snippets show you how to do the following with the Text Analytics client library for Python:
81+
These code snippets show you how to do the following with the Text Analytics client library for Ruby:
8282

8383
* [Authenticate the client](#authenticate-the-client)
8484
* [Sentiment Analysis](#sentiment-analysis)
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
---
2+
title: Connect to Common Data Service
3+
description: Create and manage Common Data Service records by using Azure Logic Apps
4+
services: logic-apps
5+
ms.suite: integration
6+
ms.reviewer: jdaly, logicappspm
7+
ms.topic: conceptual
8+
ms.date: 05/08/2020
9+
tags: connectors
10+
---
11+
12+
# Create and manage records in Common Data Service by using Azure Logic Apps
13+
14+
With [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and the [Common Data Service connector](https://docs.microsoft.com/connectors/commondataservice/), you can build automated workflows that manage records in your [Common Data Service](https://docs.microsoft.com/powerapps/maker/common-data-service/data-platform-intro) database. These workflows can create records, update records, and perform other operations. You can also get information from your Common Data Service database and make the output available for other actions to use in your logic app. For example, when a record is updated in your Common Data Service database, you can send an email by using the Office 365 Outlook connector.
15+
16+
This article shows how you can build a logic app that creates a task record whenever a new lead record is created.
17+
18+
## Prerequisites
19+
20+
* An Azure subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/).
21+
22+
* A [Common Data Service environment](https://docs.microsoft.com/power-platform/admin/environments-overview), which is a space where your organization stores, manages, and shares business data and a Common Data Service database. For more information, see these resources:<p>
23+
24+
* [Learn: Get started with Common Data Service](https://docs.microsoft.com/learn/modules/get-started-with-powerapps-common-data-service/)
25+
* [Power Platform - Environments overview](https://docs.microsoft.com/power-platform/admin/environments-overview)
26+
27+
* Basic knowledge about [how to create logic apps](../logic-apps/quickstart-create-first-logic-app-workflow.md) and the logic app from where you want to access the records in your Common Data Service database. To start your logic app with a Common Data Service trigger, you need a blank logic app. If you're new to Azure Logic Apps, review [Quickstart: Create your first workflow by using Azure Logic Apps](../logic-apps/quickstart-create-first-logic-app-workflow.md).
28+
29+
## Add Common Data Service trigger
30+
31+
[!INCLUDE [Create connection general intro](../../includes/connectors-create-connection-general-intro.md)]
32+
33+
For this example, add the Common Data Service trigger that fires when a new record is created.
34+
35+
1. In the [Azure portal](https://portal.azure.com), open your blank logic app in Logic App Designer, if not open already.
36+
37+
1. In the search box, enter `common data service`. For this example, under the triggers list, select this trigger: **When a record is created**
38+
39+
![Select "When a record is created" trigger](./media/connect-common-data-service/select-when-record-created-trigger.png)
40+
41+
1. If prompted, sign in to the Common Data Service.
42+
43+
1. In the trigger, provide information about the environment where you want to monitor for new "Leads" records, for example:
44+
45+
![Trigger information for environment to monitor](./media/connect-common-data-service/when-record-created-trigger-details.png)
46+
47+
| Property | Required | Description |
48+
|----------|----------|-------------|
49+
| **Environment** | Yes | The environment to monitor, for example, "Fabrikam Sales Production". For more information, see [Power Platform - Environments overview](https://docs.microsoft.com/power-platform/admin/environments-overview). |
50+
| **Entity Name** | Yes | The entity to monitor, for example, "Leads" |
51+
| **Scope** | Yes | The source that created the new record, for example, a user in your business unit or any user in your organization. This example uses "Business unit". |
52+
||||
53+
54+
## Add Common Data Service action
55+
56+
Now add a Common Data Service action that creates a task record for a new "Leads" record.
57+
58+
1. Under the **When a record is created** trigger, select **New step**.
59+
60+
1. In the search box, enter `common data service`. From the actions list, select this action: **Create a new record**
61+
62+
![Select "Create a new record" action](./media/connect-common-data-service/select-create-new-record-action.png)
63+
64+
1. In the action, provide the information about the environment where you want to create the new task record. If available, other properties also appear based on the entity that you selected for this action, for example:
65+
66+
![Action information for the environment where to create the record](./media/connect-common-data-service/create-new-record-action-details.png)
67+
68+
| Property | Required | Description |
69+
|----------|----------|-------------|
70+
| **Organization Name** | Yes | The environment where you want to create the record, which doesn't have to be the same environment in your trigger, but is "Fabrikam Sales Production" in this example |
71+
| **Entity Name** | Yes | The entity where you want to create the record, for example, "Tasks" |
72+
| **Subject** | Yes, based on the entity selected in this example | A short description about the objective for this task |
73+
||||
74+
75+
1. For the **Subject** property, enter this text with a trailing space:
76+
77+
`Follow up with new lead:`
78+
79+
1. Keep your pointer inside the **Subject** box so that dynamic content list stays visible.
80+
81+
1. In the list, from the **When a record is created** section, select the trigger outputs that you want to include in the task record, for example:
82+
83+
![Select trigger outputs to use in task record](./media/connect-common-data-service/create-new-record-action-select-trigger-outputs.png)
84+
85+
| Trigger output | Description |
86+
|----------------|-------------|
87+
| **First Name** | The first name from the lead record to use as the primary contact in the task record |
88+
| **Last Name** | The last name from the lead record to use as the primary contact in the task record |
89+
| **Description** | Other outputs to include in the task record, such as email address and business phone number |
90+
|||
91+
92+
When you're done, the action might look like this example:
93+
94+
![Finished "Create a new record" action](./media/connect-common-data-service/finished-create-record-action-details.png)
95+
96+
1. Save your logic app. On the designer toolbar, select **Save**.
97+
98+
1. To manually start the logic app, on the designer toolbar, select **Run**. To test your logic app, create a new "Leads" record.
99+
100+
## Trigger only on updated attributes
101+
102+
For triggers that run when records are updated, such as the **When a record is updated** action, you can use filter attributes so that your logic app runs only when the specified attributes are updated. This capability helps you prevent unnecessary logic app runs.
103+
104+
1. In the trigger, from the **Add new parameter** list, select **Attribute Filters**.
105+
106+
![Add "Attribute Filters" property](./media/connect-common-data-service/when-record-updated-trigger-add-attribute-filters.png)
107+
108+
1. For each **Attribute Filters Item**, select the attribute that you want to monitor for updates, for example:
109+
110+
![Add "Attribute Filters" property](./media/connect-common-data-service/when-record-updated-trigger-select-attribute-filter.png)
111+
112+
## List records based on a filter
113+
114+
For actions that return records, such as the **List records** action, you can use an ODATA query that returns records based on the specified filter. For example, you have the action list only the records for active accounts.
115+
116+
1. In the action, open the **Add new parameter** list, and select the **Filter Query** property.
117+
118+
![Add "Filter Query" property](./media/connect-common-data-service/list-records-action-filter-query.png)
119+
120+
1. In the **Filter Query** property that now appears in the action, enter this ODATA filter query: `statuscode eq 1`
121+
122+
![Enter ODATA filter query for filtering records](./media/connect-common-data-service/list-records-action-filter-query-value.png)
123+
124+
For more information about `$filter` system query options, see [Common Data Service - Filter results](https://docs.microsoft.com/powerapps/developer/common-data-service/webapi/query-data-web-api#filter-results).
125+
126+
## List records based on an order
127+
128+
For actions that return records, such as the **List records** action, you can use an ODATA query that returns records in a specified order, which varies based on the records that the action returns. For example, you can have the action list the records based on the account name.
129+
130+
1. In the action, open the **Add new parameter** list, and select the **Order By** property.
131+
132+
![Add "Order by" property](./media/connect-common-data-service/list-records-action-order-by.png)
133+
134+
1. In the **Order By** property that now appears in the action, enter this ODATA filter query: `name`
135+
136+
![Enter ODATA filter query for ordering records](./media/connect-common-data-service/list-records-action-order-by-value.png)
137+
138+
For more information about `$orderby` system query options, see [Common Data Service - Order results](https://docs.microsoft.com/powerapps/developer/common-data-service/webapi/query-data-web-api#order-results).
139+
140+
## Field data types
141+
142+
Regardless whether you manually enter a value or select a value from the dynamic content list for a field in a trigger or action, the value's data type must match the field's required data type.
143+
144+
This table describes some field types and the data types that those fields require for their values.
145+
146+
| Field | Data type | Description |
147+
|-------|-----------|-------------|
148+
| Text field | Single line of text | Requires either a single line of text or dynamic content that has the text data type, for example, these properties: <p><p>- **Description** <br>- **Category** |
149+
| Integer field | Whole number | Requires either an integer or dynamic content that has the integer data type, for example, these properties: <p><p>- **Percent Complete** <br>- **Duration** |
150+
| Date field | Date and Time | Requires either a date in MM/DD/YYY format or dynamic content that has the date data type, for example, these properties: <p><p>- **Created On** <br>- **Start Date** <br>- **Actual Start** <br>- **Actual End** <br>- **Due Date** |
151+
| Field that references another entity record | Primary key | Requires both a record ID, such as a GUID, and a lookup type, which means that values from the dynamic content list won't work, for example, these properties: <p><p>- **Owner**: Must be a valid user ID or a team record ID. <br>- **Owner Type**: Must be a lookup type such as `systemusers` or `teams`, respectively. <p><p>- **Regarding**: Must be a valid record ID such as an account ID or a contact record ID. <br>- **Regarding Type**: Must be a lookup type such as `accounts` or `contacts`, respectively. <p><p>- **Customer**: Must be a valid record ID such as an account ID or contact record ID. <br>- **Customer Type**: Must be the lookup type, such as `accounts` or `contacts`, respectively. |
152+
||||
153+
154+
This example shows how the **Create a new record** action creates a new "Tasks" record that's associated with other entity records, specifically a user record and an account record. The action specifies the IDs and lookup types for those entity records by using values that match the expected data types for the relevant properties.
155+
156+
* Based on the **Owner** property, which specifies a user ID, and the **Owner Type** property, which specifies the `systemusers` lookup type, the action associates the new "Tasks" record with a specific user.
157+
158+
* Based on the **Regarding** property, which specifies a record ID, and the **Regarding Type** property, which specifies the `accounts` lookup type, the action associates the new "Tasks" record with a specific account.
159+
160+
![Create "Tasks" record associated with IDs and lookup types](./media/connect-common-data-service/create-new-record-task-properties.png)
161+
162+
## Connector reference
163+
164+
For technical information based on the connector's Swagger description, such as triggers, actions, limits, and other details, see the [connector's reference page](https://docs.microsoft.com/connectors/commondataservice/).
165+
166+
## Next steps
167+
168+
* Learn about other [connectors for Azure Logic Apps](../connectors/apis-list.md)

0 commit comments

Comments
 (0)