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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -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 patch or upsert 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 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.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/event-framework.md
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: " Event Framework (Common Data Service) | Microsoft Docs"# Intent and product brand in a unique string of 43-59 chars including spaces
3
3
description: "Describes the event framework and information developers should know when working with it."# 115-145 characters including spaces. This abstract displays in the search result.
4
4
ms.custom: ""
5
-
ms.date: 05/25/2019
5
+
ms.date: 06/18/2019
6
6
ms.reviewer: ""
7
7
ms.service: powerapps
8
8
ms.topic: "article"
@@ -45,7 +45,27 @@ Generally, you can expect to find a message for most of the **Request* classes i
45
45
46
46
Data about messages is stored in the [SdkMessage](reference/entities/sdkmessage.md) and [SdkMessageFilter](reference/entities/sdkmessagefilter.md) entities. The Plug-in registration tool will filter this information to only show valid messages.
47
47
48
-
To verify if a message and entity combination supports execution of plug-ins using a database query, use Advanced Find or a community tool (e.g., [FetchXML Builder](http://fxb.xrmtoolbox.com)) to execute the following fetchXML query. When using Advanced Find, you must create the query interactively.
48
+
To verify if a message and entity combination supports execution of plug-ins using a database query, you can use the following Web API query:
49
+
50
+
```
51
+
{{webapiurl}}sdkmessages?$select=name
52
+
&$filter=isprivate eq false
53
+
and (name ne 'SetStateDynamicEntity'
54
+
and name ne 'RemoveRelated'
55
+
and name ne 'SetRelated' and
56
+
name ne 'Execute')
57
+
and sdkmessageid_sdkmessagefilter/any(s:s/iscustomprocessingstepallowed eq true
$filter=iscustomprocessingstepallowed eq true and isvisible eq true)
61
+
&$orderby=name
62
+
```
63
+
64
+
> [!TIP]
65
+
> You can export this data to an Excel worksheet using this query and the instructions provided in this blog post: [Find Messages and entities eligible for plug-ins using the Common Data Service](https://powerapps.microsoft.com/en-us/blog/find-messages-and-entities-eligible-for-plug-ins-using-the-common-data-service/)
66
+
67
+
68
+
You can also use the following FetchXML to retrieve this information. The [FetchXML Builder](http://fxb.xrmtoolbox.com) is a useful tool to execute this kind of query.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/org-service/build-queries-with-linq-net-language-integrated-query.md
+5-18Lines changed: 5 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -19,27 +19,14 @@ search.app:
19
19
20
20
You can use .NET Language-Integrated Query (LINQ) to write queries in Common Data Service. You can use the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext> class or a deriving class created by the CrmSvcUtil tool to write [LINQ](https://msdn.microsoft.com/library/bb397897.aspx) queries that access the SOAP endpoint (Organization.svc). The <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext> class contains an underlying LINQ query provider that translates LINQ queries from Visual C# or Visual Basic .NET syntax into the query API used by Common Data Service.
21
21
22
-
When you use early-bound programming classes you can generate a class derived from the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext> class if you specify the name of the class using the **servicecontextname** parameter when using the Code Generation Tool (CrmSvcUtil.exe). Use of this class allows for referencing an [IQueryable](https://msdn.microsoft.com/library/system.linq.iqueryable.aspx) entity set using the pattern `<entity schema name>+Set`, for example **AccountSet** to reference the collection of `Account` entity records. All samples in the Common Data Service Web Services, use **ServiceContext** as the name for this class but your code may use a different name. More information: [Create Early Bound Entity Classes with the Code Generation Tool (CrmSvcUtil.exe)](/dynamics365/customer-engagement/developer/org-service/create-early-bound-entity-classes-code-generation-tool.md)
22
+
When you use early-bound programming classes you can generate a class derived from the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceContext> class if you specify the name of the class using the **servicecontextname** parameter when using the Code Generation Tool (CrmSvcUtil.exe). Use of this class allows for referencing an [IQueryable](https://msdn.microsoft.com/library/system.linq.iqueryable.aspx) entity set using the pattern `<entity schema name>+Set`, for example **AccountSet** to reference the collection of `Account` entity records. All samples in the Common Data Service Web Services, use **ServiceContext** as the name for this class but your code may use a different name. More information: [Generate early-bound classes for the Organization service)](generate-early-bound-classes.md).
23
23
24
-
## In This Section
24
+
### See Also
25
+
25
26
[Use LINQ to Construct a Query](use-linq-construct-query.md)
26
27
27
28
[Use Late-Bound Entity Class with a LINQ Query](use-late-bound-entity-class-linq-query.md)
28
29
29
30
[Use Entity Lookup Attributes with LINQ](order-results-entity-attributes-linq.md)
30
-
31
-
[Order Results Using Entity Attributes with LINQ](/dynamics365/customer-engagement/developer/org-service/order-results-entity-attributes-linq)
32
-
33
-
[Paging Large Result Sets with LINQ](/dynamics365/customer-engagement/developer/org-service/page-large-result-sets-linq)
[Sample: RetrieveMultiple With Condition Operators Using LINQ](/dynamics365/customer-engagement/developer/org-service/sample-retrieve-multiple-with-condition-operators-using-linq)
42
-
43
-
[Sample: More LINQ Query Examples](/dynamics365/customer-engagement/developer/org-service/sample-more-linq-query-examples)
44
-
45
-
[Sample: Use LINQ with Late Binding](/dynamics365/customer-engagement/developer/org-service/sample-create-linq-query-late-binding)
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/org-service/handle-exceptions-code.md
+18-21Lines changed: 18 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Handle exceptions in your code (Common Data Service) | Microsoft Docs"
3
3
description: "This article discusses the exceptions that are returned from a Dynamics 365 Customer Engagement web service method call. The sample in this article highlights the common faults and exceptions that your application design should handle."
4
4
ms.custom: ""
5
-
ms.date: 10/31/2018
5
+
ms.date: 06/17/2019
6
6
ms.reviewer: ""
7
7
ms.service: powerapps
8
8
ms.topic: "article"
@@ -23,7 +23,7 @@ There are a number of exceptions that can be returned from a Common Data Service
23
23
24
24
## Common exceptions and faults
25
25
26
-
The following code is used in most Common Data Service Web Services samples. It highlights the common faults and exceptions that your application design should handle.
26
+
The following code is used in most Common Data Service Web Services samples. It highlights the common faults and exceptions that your application design should handle.
> If you’re accessing the Discovery web service, your code should catch <xref:Microsoft.Xrm.Sdk.DiscoveryServiceFault> instead of the <xref:Microsoft.Xrm.Sdk.OrganizationServiceFault> fault shown previously.
73
73
74
-
In addition to these exceptions and faults, your code must handle the following exceptions:
74
+
In addition to these exceptions and faults, your code must handle the following exceptions:
When connecting to Common Data Service, a `SecurityAccessDeniedException` exception can be thrown if you use a valid Microsoft account and your account is not associated with any Common Data Service organization. A `MessageSecurityException` can be thrown if your Microsoft account isn’t valid or there was an authentication failure.
82
+
When connecting to Common Data Service, a `SecurityAccessDeniedException` exception can be thrown if you use a valid Microsoft account and your account is not associated with any Common Data Service organization. A `MessageSecurityException` can be thrown if your Microsoft account isn’t valid or there was an authentication failure.
87
83
88
84
<aname="BKMK_BusinessRuleErrors"></a>
89
85
90
86
## Custom errors from business rules
91
87
92
-
With Common Data Service, customizers can create business rules that are evaluated on the server. Customizers can throw error messages based on conditions set in the business rule. Developers should be sure to include robust error handling in their code to catch and handle these exceptions.
88
+
With Common Data Service, customizers can create business rules that are evaluated on the server. Customizers can throw error messages based on conditions set in the business rule. Developers should be sure to include robust error handling in their code to catch and handle these exceptions.
93
89
94
-
The following is an example of the trace log produced when one of these errors is returned from a business rule named **Name of Entity Scope Business Rule returning Error** and the error message is **custom error message**.
90
+
The following is an example of the trace log produced when one of these errors is returned from a business rule named **Name of Entity Scope Business Rule returning Error** and the error message is **custom error message**.
@@ -123,15 +119,16 @@ Sync workflow 'Name of Entity Scope Business Rule returning Error' terminated wi
123
119
</OrganizationServiceFault>
124
120
```
125
121
126
-
More information: [Create and edit Business Rules](https://technet.microsoft.com/library/dn531086.aspx).
122
+
More information: [Create a business rule for an entity](../../../maker/common-data-service/data-platform-create-business-rule.md)
127
123
128
-
<aname="BKMK_AdditionalInfo"></a>
129
-
## Additional information about exceptions
130
-
When an uncaught exception is thrown that contains sensitive information that the user doesn’t have permission to see, the sensitive information in the exception is hidden from the user and a reference number is provided. This reference number refers to the related server event log entry and server trace entry. A system administrator can look up those entries and find more information about the exception.
124
+
<aname="BKMK_AdditionalInfo"></a>
125
+
126
+
## Additional information about exceptions
127
+
128
+
When an uncaught exception is thrown that contains sensitive information that the user doesn’t have permission to see, the sensitive information in the exception is hidden from the user and a reference number is provided. This reference number refers to the related server event log entry and server trace entry. A system administrator can look up those entries and find more information about the exception.
131
129
132
130
### See also
133
-
[Troubleshooting and error handling](/dynamics365/customer-engagement/developer/troubleshooting-error-handling)
[Build Queries with LINQ (.NET Language-Integrated Query)](/dynamics365/customer-engagement/developer/org-service/build-queries-with-linq-net-language-integrated-query)
155
+
[Use Late-Bound Entity Class with a LINQ Query](/dynamics365/customer-engagement/developer/org-service/use-late-bound-entity-class-linq-query)
156
156
[Blog: LINQPad 4 Driver for Dynamics CRM REST/Web API are available on CodePlex](http://blogs.msdn.com/b/crminthefield/archive/2015/06/11/linqpad-4-driver-for-dynamics-crm-rest-webapi-are-available-on-codeplex.aspx)
0 commit comments