Skip to content

Commit 17d29fa

Browse files
committed
Merge branch 'master' into pehecke-webapi-sample-update
2 parents ad313f4 + dfb2bd0 commit 17d29fa

18 files changed

+579
-584
lines changed

.openpublishing.redirection.json

+304-299
Large diffs are not rendered by default.

powerapps-docs/developer/common-data-service/create-package-app-appsource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A package lets you bundle and deploy multiple files related to your app at once.
4444

4545
```xml
4646
<?xml version="1.0" encoding="utf-8"?>
47-
<Types xmlns="https://schemas.openxmlformats.org/package/2006/content-types">
47+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
4848
<Default Extension="xml" ContentType="application/octet-stream" />
4949
<Default Extension="xaml" ContentType="application/octet-stream" />
5050
<Default Extension="dll" ContentType="application/octet-stream" />

powerapps-docs/developer/common-data-service/define-alternate-keys-entity.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Work with alternate keys (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "The topic explains about how to create alternate keys for an entity. Alternate keys can be created programmatically or by using the customization tools" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 06/24/2020
5+
ms.date: 08/01/2020
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -23,7 +23,7 @@ All Common Data Service records have unique identifiers defined as GUIDs. These
2323

2424
## Create alternate keys
2525

26-
You can create alternate keys programmatically or by using the customizations tools. For more information about using the customization tools, see [Define alternate keys to reference CRM records](https://technet.microsoft.com/library/29e53691-0b18-4fde-a1d0-7490aa227898.aspx).
26+
You can create alternate keys programmatically or by using the customizations tools. For more information about using the customization tools, see [Define alternate keys using Power Apps portal](../../maker/common-data-service/define-alternate-keys-portal.md).
2727

2828
To define alternate keys programmatically, you first have to create an object of type <xref:Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata> (or use <xref href="Microsoft.Dynamics.CRM.EntityKeyMetadata?text=EntityKeyMetadata EntityType" /> if working with Web API). This class contains the key attributes. Once the key attributes are set, you can use `CreateEntityKey` to create the keys for an entity. This message takes the entity name and `EntityKeyMetadata` values as input to create the key.
2929

@@ -54,7 +54,7 @@ You should be aware of the following constraints when creating alternate keys:
5454

5555
- **Unicode characters in key value**
5656

57-
If the data within a field that is used in an alternate key will contain one of the following characters `/`,`<`,`>`,`*`,`%`,`&`,`:`,`\\` then update or upsert (PATCH) actions will not work. If you only need uniqueness then this approach will work, but if you need to use these keys as part of data integration then it is best to create the key on fields that won't have data with those characters.
57+
If the data within a field that is used in an alternate key will contain one of the following characters `/`,`<`,`>`,`*`,`%`,`&`,`:`,`\\`,`?` then retrieve (`GET`), update or upsert (`PATCH`) actions will not work. If you only need uniqueness then this approach will work, but if you need to use these keys as part of data integration then it is best to create the key on fields that won't have data with those characters.
5858

5959
<a name="BKMK_crud"></a>
6060

powerapps-docs/developer/common-data-service/org-service/use-conditionexpression-class.md

+17-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Use the ConditionExpression class (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Read how you can use the ConditionExpression class to compare an attribute to a value or set of values by using an operator, such as &quot;equal to&quot; or &quot;greater than&quot;" # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 08/03/2020
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -105,20 +105,28 @@ public ConditionExpression
105105
)
106106
```
107107

108-
In the SDK, two APIs are introduced to support column comparison. The
109-
first identifies the original attribute, the second allows
110-
for the inclusion of the attribute you want to compare it against.
108+
By passing in `true` as the value for the `compareColumns` parameter, the `value` is treated as the
109+
name of the second attribute to compare the values in `attributeName` to. Pass in `false` to treat it
110+
as a literal value instead.
111111

112-
If `compareColumns` is passed in as `true`, it will compare the two attributes
113-
and return all records that match.
112+
For example:
114113

115-
If a `false` value is passed, it will return all records for one attribute and
116-
return values that match the provided value.
114+
```csharp
115+
new ConditionExpression("firstname", ConditionOperator.Equal, true, "lastname");
116+
```
117+
118+
This code creates a condition to return only records where the first and last names are the same, while
119+
120+
```csharp
121+
new ConditionExpression("firstname", ConditionOperator.Equal, false, "John");
122+
```
123+
124+
creates a condition to return only records where the first name is John.
117125

118126
More information: [Use column comparison in queries](../column-comparison.md)
119127

120128
### See also
121129
[Building Queries](build-queries-with-queryexpression.md)
122130
[Build Queries with QueryExpression](build-queries-with-queryexpression.md)
123131
[Use the FilterExpression Class](use-filterexpression-class.md)
124-
<xref:Microsoft.Xrm.Sdk.Query.ConditionExpression>
132+
<xref:Microsoft.Xrm.Sdk.Query.ConditionExpression>

powerapps-docs/developer/common-data-service/use-single-tenant-server-server-authentication.md

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ To create an unlicensed "application user" in your environment, follow these ste
9797
9898
7. Before exiting the user form, choose **MANAGE ROLES** and assign a security role to this application user so that the application user can access the desired organization data.
9999

100+
> [!NOTE]
101+
> In an environment, only one Application User for each Azure AD registered application is supported.
102+
100103
> [!IMPORTANT]
101104
> When developing a real-world application using S2S, you should use a custom security role which can be stored in a solution and distributed along with your application.
102105

0 commit comments

Comments
 (0)