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/authenticate-oauth.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
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
3
3
description: "Learn how to authenticate using OAuth with Common Data Service"# 115-145 characters including spaces. This abstract displays in the search result.
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:
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/file-attributes.md
+13-1Lines changed: 13 additions & 1 deletion
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: "File attributes (Common Data Service) | Microsoft Docs"# Intent and product brand in a unique string of 43-59 chars including spaces
3
3
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.
4
4
ms.custom: ""
5
-
ms.date: 06/17/2020
5
+
ms.date: 07/09/2020
6
6
ms.reviewer: "pehecke"
7
7
ms.service: powerapps
8
8
ms.topic: "article"
@@ -150,6 +150,18 @@ Headers:
150
150
x-ms-transfer-mode: chunked
151
151
x-ms-file-name: sample.png
152
152
```
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.
Copy file name to clipboardExpand all lines: powerapps-docs/developer/common-data-service/powerapps-cli.md
+86-3Lines changed: 86 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,99 @@ To get Power Apps CLI, do the following:
44
44
45
45
## Common commands
46
46
47
-
This table lists some common commands used in the CLI:
47
+
This table lists some of the common commands used in the CLI:
48
48
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|
50
133
|------|-----------|--------|
51
134
|**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`|
52
135
|**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>`|
53
136
|**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`|
54
137
|**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`|
55
138
|**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`|-->
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.
111
111
112
+
> [!NOTE]
113
+
> Creating related entity records in a single create operation is not supported for offline mode.
114
+
112
115
```JavaScript
113
116
// define data to create primary and related entity records
0 commit comments