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: powerapps-docs/developer/common-data-service/define-alternate-keys-entity.md
+3-3Lines changed: 3 additions & 3 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: "Work with alternate keys (Common Data Service) | Microsoft Docs"# Intent and product brand in a unique string of 43-59 chars including spaces
3
3
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.
4
4
ms.custom: ""
5
-
ms.date: 06/24/2020
5
+
ms.date: 08/01/2020
6
6
ms.reviewer: "pehecke"
7
7
ms.service: powerapps
8
8
ms.topic: "article"
@@ -23,7 +23,7 @@ All Common Data Service records have unique identifiers defined as GUIDs. These
23
23
24
24
## Create alternate keys
25
25
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).
27
27
28
28
To define alternate keys programmatically, you first have to create an object of type <xref:Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata> (or use <xrefhref="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.
29
29
@@ -54,7 +54,7 @@ You should be aware of the following constraints when creating alternate keys:
54
54
55
55
-**Unicode characters in key value**
56
56
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.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/common-data-service/define-alternate-keys-portal.md
+3-3Lines changed: 3 additions & 3 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: "Define alternate keys using Power Apps portal | MicrosoftDocs"
3
3
description: "Learn how to define alternate keys using Power Apps portal"
4
4
ms.custom: ""
5
-
ms.date: 06/11/2020
5
+
ms.date: 08/01/2020
6
6
ms.reviewer: ""
7
7
ms.service: powerapps
8
8
ms.suite: ""
@@ -28,7 +28,7 @@ search.app:
28
28
Power Apps enables configuring the most common options, but certain options can only be set using solution explorer. More information: [Define alternate keys using solution explorer](define-alternate-keys-solution-explorer.md)
29
29
30
30
> [!IMPORTANT]
31
-
> If the data within a field that is used in an alternate key will contain one of the following characters /,<,>,*,%,&,:,\ then get or 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.
31
+
> If the data within a field that is used in an alternate key will contain one of the following characters `/`,`<`,`>`,`*`,`%`,`&`,`:`,`\\`,`?` then `GET` or `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.
32
32
33
33
## View alternate keys
34
34
@@ -59,4 +59,4 @@ While [viewing alternate keys](#view-alternate-keys), select the key you want to
59
59
60
60
### See also
61
61
62
-
[Developer Documentation: Define alternate keys for an entity](/dynamics365/customer-engagement/developer/define-alternate-keys-entity)
62
+
[Developer Documentation: Work with alternate keys](../../developer/common-data-service/define-alternate-keys-entity.md)
Copy file name to clipboardExpand all lines: powerapps-docs/maker/common-data-service/define-alternate-keys-solution-explorer.md
+7-3Lines changed: 7 additions & 3 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: "Define alternate keys using solution explorer | MicrosoftDocs"
3
3
description: "Learn how to define alternate keys that can be used to reference records in Common Data Service using solution explorer"
4
4
ms.custom: ""
5
-
ms.date: 05/31/2018
5
+
ms.date: 08/01/2020
6
6
ms.reviewer: ""
7
7
ms.service: powerapps
8
8
ms.suite: ""
@@ -29,6 +29,9 @@ The [Power Apps portal](https://make.powerapps.com/?utm_source=padocs&utm_medium
29
29
-[Define alternate keys to reference records](define-alternate-keys-reference-records.md)<br />
30
30
-[Define alternate keys using Power Apps portal](define-alternate-keys-portal.md)
31
31
32
+
> [!IMPORTANT]
33
+
> If the data within a field that is used in an alternate key will contain one of the following characters `/`,`<`,`>`,`*`,`%`,`&`,`:`,`\\`,`?` then `GET` or `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.
34
+
32
35
## Open solution explorer
33
36
34
37
Part of the name of any alternate key you create is the customization prefix. This is set based on the solution publisher for the solution you’re working in. If you care about the customization prefix, make sure that you are working in an unmanaged solution where the customization prefix is the one you want for this entity. More information: [Change the solution publisher prefix](change-solution-publisher-prefix.md)
@@ -51,12 +54,13 @@ Part of the name of any alternate key you create is the customization prefix. Th
51
54
1. Select **OK** to close the form.
52
55
53
56
### (Optional) View the system job tracking creation of indexes
57
+
54
58
1. While [viewing alternate keys](#view-alternate-keys) after you have created a new alternate key you will see a row for the key you created.
55
59
2. In the **System Job** column you will find a link to the system job that monitors the creation of the indexes to support the alternate key.
56
60
57
61
This system job will have a name that follows this pattern: `Create index for {0} for entity {1}` where `0` is the **Display Name** of the alternate key and `1` is the name of the entity.
58
62
59
-
The link to the system job will not be displayed after the system job completes successfully. More information: [Monitor and manage system jobs](/dynamics365/customer-engagement/admin/monitor-manage-system-jobs)
63
+
The link to the system job will not be displayed after the system job completes successfully. More information: [Monitor and manage system jobs](/power-platform/admin/monitor-manage-system-jobs)
60
64
61
65
62
66
## Delete an alternate key
@@ -67,4 +71,4 @@ While [viewing alternate keys](#view-alternate-keys), select <br />
69
73
[Define alternate keys using Power Apps portal](define-alternate-keys-portal.md)<br />
70
-
[Developer Documentation: Define alternate keys for an entity](/dynamics365/customer-engagement/developer/define-alternate-keys-entity)
74
+
[Developer Documentation: Work with alternate keys](../../developer/common-data-service/define-alternate-keys-entity.md)
0 commit comments