Skip to content

Commit 1b42ef1

Browse files
committed
Merge branch 'master' into rtw-docs
2 parents ea04e66 + 9d21a08 commit 1b42ef1

File tree

92 files changed

+1757
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1757
-71
lines changed

powerapps-docs/developer/common-data-service/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
href: use-fetchxml-left-outer-join-query-records-not-in.md
2828
- name: Page large result sets with FetchXML
2929
href: org-service/page-large-result-sets-with-fetchxml.md
30+
- name: Use column comparison in queries
31+
href: column-comparison.md
3032
- name: "Use SQL to query data (Preview)"
3133
href: cds-sql-query.md
3234
- name: Saved Queries

powerapps-docs/developer/common-data-service/authenticate-oauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Use OAuth with Common Data Service (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Learn how to authenticate using OAuth with Common Data Service" # 115-145 characters including spaces. This abstract displays in the search result.
4-
ms.custom: ""
4+
ms.custom: has-adal-ref
55
ms.date: 10/31/2018
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: "Use column comparison in queries (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "Learn how to compare columns when querying business data." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 07/08/2020
6+
ms.reviewer: "pehecke"
7+
ms.service: powerapps
8+
ms.topic: "article"
9+
author: "NHelgren" # GitHub ID
10+
ms.author: "nhelgren" # MSFT alias of Microsoft employees only
11+
manager: "mayadu" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Use column comparison in queries
20+
21+
In the Common Data Service, users can perform a column comparison for the
22+
following condition operators using FetchXML, Web API, or the SDK API:
23+
24+
- Equal
25+
- NotEqual
26+
- GreaterThan
27+
- GreaterEqual
28+
- LessThan
29+
- LessEqual
30+
31+
This will allow the comparison of an attribute against a specific value and
32+
return all found records, or allow the comparison of two attributes to return
33+
all records with a matching value.
34+
35+
## Limitations
36+
37+
Listed below are the limitations for the current Common Data Service column comparison support.
38+
39+
- You can only compare columns within a single entity
40+
- Only two columns may be compared at a time.
41+
- Multi-value condition operators are not supported (i.e., "in").
42+
- Extended condition operators are not supported (i.e., "creditlimit \> spends+1000").
43+
- Incompatible attribute comparison is not supported. For example, "int vs. int" attributes is a valid comparison but "int vs. string" attributes is not a valid comparison.
44+
45+
## Column comparison using FetchXML
46+
47+
The following example shows how to compare columns using FetchXML:
48+
49+
```xml
50+
<fetch>
51+
<entity name='contact' >
52+
<attribute name='firstname' />
53+
<filter>
54+
<condition attribute='firstname' operator='eq' valueof='lastname'/>
55+
</filter>
56+
</entity>
57+
</fetch>
58+
```
59+
60+
For FetchXML requests, a new node `valueof` has been added inside the condition
61+
node. The `valueof` tag is used to identify the attribute that is being compared
62+
to the selected attribute. In the above example, the 'firstname' column is being
63+
compared against the 'lastname' column and will return any records that contain
64+
the same value across both attributes.
65+
66+
### See Also
67+
68+
[Use FetchXML to construct a query](use-fetchxml-construct-query.md)
69+
[Column comparison using the Web API](webapi/query-data-web-api.md#column-comparison-using-the-web-api)
70+
[Column comparison using the SDK API](org-service/use-conditionexpression-class.md#column-comparison-using-the-sdk-api)

powerapps-docs/developer/common-data-service/file-attributes.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "File attributes (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Learn about File attributes that store file data within the application, supporting attributes, retrieving data, and uploading file data." # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 06/17/2020
5+
ms.date: 07/09/2020
66
ms.reviewer: "pehecke"
77
ms.service: powerapps
88
ms.topic: "article"
@@ -150,6 +150,18 @@ Headers:
150150
x-ms-transfer-mode: chunked
151151
x-ms-file-name: sample.png
152152
```
153+
154+
**Request** (alternate form)
155+
156+
This form of the request uses a query string parameter and supports non-ASCII language file names. If the file name is specified in both the header and as a query string parameter, the header value has precedence.
157+
158+
```http
159+
PATCH [Organization URI]/api/data/v9.1/accounts(id)/myfileattribute?x-ms-file-name=测试.txt
160+
161+
Headers:
162+
x-ms-transfer-mode: chunked
163+
```
164+
153165
**Response**
154166
```http
155167
200 OK

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,41 @@ condition3.Operator = ConditionOperator.Equal;
8282
condition3.Values.Add(AccountState.Active);
8383

8484
```
85-
85+
86+
## Column comparison using the SDK API
87+
88+
The following example shows how to compare columns using SDK API and the Organization service:
89+
90+
```csharp
91+
public ConditionExpression
92+
(
93+
string attributeName,
94+
  ConditionOperator conditionOperator,
95+
  bool compareColumns,
96+
  object value
97+
)
98+
99+
public ConditionExpression
100+
(
101+
string attributeName,
102+
ConditionOperator conditionOperator,
103+
  bool compareColumns,
104+
  object[] values
105+
)
106+
```
107+
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.
111+
112+
If `compareColumns` is passed in as `true`, it will compare the two attributes
113+
and return all records that match.
114+
115+
If a `false` value is passed, it will return all records for one attribute and
116+
return values that match the provided value.
117+
118+
More information: [Use column comparison in queries](../column-comparison.md)
119+
86120
### See also
87121
[Building Queries](build-queries-with-queryexpression.md)
88122
[Build Queries with QueryExpression](build-queries-with-queryexpression.md)

powerapps-docs/developer/common-data-service/powerapps-cli.md

Lines changed: 86 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,99 @@ To get Power Apps CLI, do the following:
4444
4545
## Common commands
4646
47-
This table lists some common commands used in the CLI:
47+
This table lists some of the common commands used in the CLI:
4848
49-
|Command|Description|Examples|
49+
|Command|Description|
50+
|-------|-----------|
51+
|[pcf](#pcf)|Commands to work with [Power Apps component framework](/powerapps/developer/component-framework/overview).|
52+
|[solution](#solution)|Commands for working with [Common Data Service solution projects](/powerapps/maker/common-data-service/solutions-overview).|
53+
|[auth](#auth)|Commands to [authenticate to Common Data Service](/powerapps/developer/component-framework/import-custom-controls#connecting-to-your-environment).|
54+
|[telemetry](#telemetry)|Manages the telemetry settings.|
55+
|[plugin](#plugin)|Manages to create a [plug-in](/powerapps/developer/common-data-service/plug-ins) project.|
56+
|[org](#org)|Command to work with Common Data Service environment.|
57+
58+
### Pcf
59+
60+
Commands to work with [Power Apps component framework](/powerapps/developer/component-framework/overview). It has the following parameters:
61+
62+
#### Parameters
63+
64+
|Property Name|Description|Example|
65+
|-------------|-----------|-------|
66+
|init|Initializes the code component project. It has the following parameters <br/> - *namespace*: Namespace of the code component. <br/> - *name*: Name of the code component. <br/> - *template*: Field or dataset| `pac pcf init --namespace<SampleNameSpace --name SampleComponent --template field`|
67+
|push|Pushes the code component to the Common Data Service instance with all the latest changes. It has the following parameter: <br/> - *publisher-prefix*: Publisher prefix of the organization.|`pac pcf push --publisher-prefix dev`|
68+
|version|Updates the component manifest file with the specified patch version. It has the following parameters: <br/> - *patchversion*: Patch version of the code component. `patchversion` will only take value of the third part of the version tuple: `Major.Minor.Patch`.<br/> - *path*: Absolute or relative path of the component manifest file.<br/> - *allmanifests*: Updates the patch version for all the component manifest files. <br/> - *updatetarget*: Updates the specified manifest file. It has two values, build and project.<br/> - *strategy*: Updates patch version for the manifest files using specified strategy values. It has the following values: <br/> - *gittags*: Use git tags to decide if a particular component’s patch version needs to be updated.<br/> *filetracking*: Use .csv file to decide if a particular component’s patch version needs to be updated. <br/> - *manifest*: Increments the patch version by 1 for all the components.|`pac pcf version --patchversion 1.0.0.0 --path c:\Users\Downloads\SampleComponent --allmanifests` <br/><br/> `pac pcf version --strategy gittags`|
69+
70+
71+
### Solution
72+
73+
Commands for working with [Common Data Service solution projects](/powerapps/maker/common-data-service/solutions-overview). It has the following parameters:
74+
75+
#### Parameters
76+
77+
|Property Name|Description|Example|
78+
|-------------|-----------|-------|
79+
|init|Initializes the solution project. It has the following parameters:<br/> - *publisher-name*: Publisher name of the organization. <br/> - *publisher-prefix*: Publisher prefix of the organization.|`pac solution init --publisher-name developer --publisher-prefix dev` |
80+
|add-reference|Sets the reference path to the component project folder by passing the `path` parameter.|`pac solution add-reference --path c:\Users\Downloads\SampleComponent`|
81+
|clone|Creates a solution project based up on the existing solution project. It has the following parameters:<br/> -*name*: The name of the solution to be exported.<br/> -*targetversion*: The version that the exported solution supports.<br/> -*include*: Settings that should be included in the solution being exported. <br/> It has the following values: autonumbering, calendar, customization, emailtracking, externalapplications, general, isvconfig, marketing, outlooksynchronization, relationshiproles, sales|`pac solution clone -–name sampleSolution --version 1.0.0.2 --include general`|
82+
|export|Exports a Common Data Service solution project from the current organization. It has the following parameters:<br/> -*path*: Place where the exported solution zip file will be saved.<br/> - *name*: Name oft he solution that needs to be exported.<br/> - *managed*: Defines whether the solution should be exported as a managed solution or not.<br/>-*targetversion*: The version that the exported solution supports.<br/> -*include*: Settings that should be included in the solution being exported.|`pac solution export --path c:\Users\Documents -- name SampleComponentSolution -- managed true -- targetversion 10.0.03 --include general`|
83+
84+
### Auth
85+
86+
Commands to [authenticate to Common Data Service](/powerapps/developer/component-framework/import-custom-controls#connecting-to-your-environment). It has the following parameters:
87+
88+
#### Parameters
89+
90+
|Parameter Name|Description|Example|
91+
|-------------|-----------|-------|
92+
|create| Creates the authentication profile for your organization by passing the `url` parameter. Pass the organization url for the `url` parameter.|`pac auth create --url https://Myorg.crm.dynamics.com`|
93+
|list|Provides the list of authentication profiles.|`pac auth list`|
94+
|select|Provides a way to switch between previously created authentication profiles by passing the `index` parameter.|`pac auth select --index 2`|
95+
|delete|Deletes the authentication profile created by passing the `index` parameter.|`pac auth delete --index 2`|
96+
|clear|Clears all the authentication profile created on the local machine.| `pac auth clear`|
97+
98+
### Telemetry
99+
100+
Manages the telemetry settings. It has the following parameters:
101+
102+
#### Parameters
103+
104+
|Parameter Name|Description|Example|
105+
|------------|------------|---------|
106+
|enable|Enables the telemetry option.|`pac telemetry enable`|
107+
|disable|Disables the telemetry option.| `pac telemetry disable`|
108+
|status|Returns whether the telemetry is enabled or disabled.|`pac telemetry status`|
109+
110+
### Org
111+
112+
Command to work with Common Data Service organizations.
113+
114+
#### Parameters
115+
116+
|Parameter Name|Description|Example|
117+
|-------------|-----------|--------|
118+
|who|Displays information about the current Common Data Service organizations.|`pac org who`|
119+
120+
121+
### Plugin
122+
123+
Manages to create a [plug-in](/powerapps/developer/common-data-service/plug-ins) project.
124+
125+
#### Parameters
126+
127+
|Parameter Name|Description|Example|
128+
|-------------|-----------|--------|
129+
|init|Initializes a directory with a new plugin class library.|`pac plugin init`|
130+
131+
132+
<!--|Command|Description|Examples|
50133
|------|-----------|--------|
51134
|**pcf**|Commands for working with [Power Apps component framework](/powerapps/developer/component-framework/overview). It has the following parameters: <br/> - **init**: Initializes the code component project. It has the following parameters <br/> - *namespace*: Namespace of the code component. <br/> - *name*: Name of the code component. <br/> - *template*: Field or dataset <br/> - **push**: Pushes the code component to the Common Data Service instance with all the latest changes. It has the following parameter: <br/> - *publisher-prefix*: Publisher prefix of the organization.<br/> - **Version**: Updates the component manifest file with the specified patch version. It has the following parameters: <br/> - *patchversion*: Patch version of the code component. `patchversion` will only take value of the third part of the version tuple: `Major.Minor.Patch`.<br/> - *path*: Absolute or relative path of the component manifest file.<br/> - *allmanifests*: Updates the patch version for all the component manifest files. <br/> - *strategy*: Updates patch version for the manifest files using specified strategy values.| `pac pcf init --namespace <specify your namespace here> --name <Name of the code component> --template <component type>` <br/> <br/> `pac pcf push --publisher-prefix <your publisher prefix>` <br/><br/> `pac pcf version --patchversion <number> --path <Absolute or relative path to component manifest file --allmanifests` <br/><br/> `pac pcf version --strategy gittags`|
52135
|**solution**|Commands for working with [Common Data Service solution projects](/powerapps/maker/common-data-service/solutions-overview). It has the following parameters: <br/> - **init**: Initializes the solution project. It has the following parameters:<br/> - *publisher-name*: Publisher name of the organization. <br/> - *publisher-prefix*: Publisher prefix of the organization. <br/> - **add-reference**: Sets the reference path to the component project folder by passing the `path` parameter.<br/> - **clone**: Creates a solution project based up on the existing solution project by passing the following parameters:<br/> -*name*: The name of the solution to be exported.<br/> -*targetversion*: The version that the exported solution supports.<br/> -*include*: Settings that should be included in the solution being exported.<br/> -**Export**: Exports a Common Data Service solution project from the current organization. It has the following parameters:<br/> -*path*: Place where the exported solution zip file will be saved.<br/> - *name*: Name oft he solution that needs to be exported.<br/> - *managed*: Defines whether the solution should be exported as a managed solution or not.<br/>-*targetversion*: The version that the exported solution supports.<br/> -*include*: Settings that should be included in the solution being exported.|`pac solution init --publisher-name <enter your publisher name> --publisher-prefix <enter your publisher prefix>` <br/><br/> `pac solution add-reference --path <path to your Power Apps component framework project>`<br/><br/> `pac solution clone –name<name of the solution to be exported> --version <version of your solution> --include <settings that should be included>`|
53136
|**auth**|Commands to [authenticate to Common Data Service](/powerapps/developer/component-framework/import-custom-controls#connecting-to-your-environment). It has the following parameters: <br/> - **create**: Creates the authentication profile for your organization by passing the `url` parameter. Pass the organization url for the `url` parameter. <br/> - **list**: Provides the list of authentication profiles. <br/> - **select**: Provides a way to switch between previously created authentication profiles by passing the `index` parameter.<br/> - **delete**: Deletes the authentication profile created by passing the `index` parameter.<br/> - **clear**: Clears all the authentication profile created on the local machine.|`pac auth create --url <your Common Data Service org’s url>` <br/> <br/> `pac auth list` <br/><br/> `pac auth select --index <index of the active profile>`<br/><br/> `pac auth clear`|
54137
|**telemetry**|Manages the telemetry settings. It has the following parameters: <br/>- *enable*: Enables the telemetry option.<br/> - *disable*: Disables the telemetry option.<br/> - *status*: Returns whether the telemetry is enabled or disabled.|`pac telemetry enable` <br/><br/> `pac telemetry disable`|
55138
|**org**|Command to work with Common Data Service.|`pac org who`|
56-
|**plugin**|Manages to create a [plug-in](/powerapps/developer/common-data-service/plug-ins) project|`pac plugin init`|
139+
|**plugin**|Manages to create a [plug-in](/powerapps/developer/common-data-service/plug-ins) project|`pac plugin init`|-->
57140
58141
## Uninstall Power Apps CLI
59142

powerapps-docs/developer/common-data-service/webapi/query-data-web-api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,16 @@ The change tracking feature allows you to keep the data synchronized in an effic
861861

862862
More information: [Use change tracking to synchronize data with external systems](../use-change-tracking-synchronize-data-external-systems.md).
863863

864+
## Column comparison using the Web API
865+
866+
The following example shows how to compare columns using the Web API:
867+
868+
```http
869+
https://<environment-root>/contacts?$select=firstname&$filter=firstname eq lastname
870+
```
871+
872+
More information: [Use column comparison in queries](../column-comparison.md)
873+
864874
### See also
865875

866876
[Web API Query Data Sample (C#)](samples/query-data-csharp.md)<br />

powerapps-docs/developer/model-driven-apps/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@
826826
href: define-ribbon-display-rules.md
827827
- name: Define ribbon actions
828828
href: define-ribbon-actions.md
829+
- name: Override the default behavior to open records in grids
830+
href: override-default-open-behavior-grids.md
829831
- name: Pass data from a page as a parameter to Ribbon Actions
830832
href: pass-data-page-parameter-ribbon-actions.md
831833
- name: Define custom actions to modify the ribbon

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-WebApi/createRecord.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ Xrm.WebApi.createRecord("account", data).then(
109109

110110
You can create entities related to each other by defining them as navigation properties values. This is known as *deep insert*. In this example, we will create a sample account record along with the primary contact record and an associated opportunity record.
111111

112+
> [!NOTE]
113+
> Creating related entity records in a single create operation is not supported for offline mode.
114+
112115
```JavaScript
113116
// define data to create primary and related entity records
114117
var data =
@@ -205,4 +208,4 @@ Xrm.WebApi.offline.createRecord("account", data).then(
205208

206209
[Create an entity using the Web API](../../../../common-data-service/webapi/create-entity-web-api.md)
207210

208-
[Xrm.WebApi](../xrm-webapi.md)
211+
[Xrm.WebApi](../xrm-webapi.md)

0 commit comments

Comments
 (0)