Skip to content

Commit bee15a0

Browse files
authored
Merge branch 'live' into patch-1
2 parents 9d7e8a2 + d72c5ff commit bee15a0

File tree

146 files changed

+1086
-361
lines changed

Some content is hidden

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

146 files changed

+1086
-361
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@
431431
items:
432432
- name: Download tools from NuGet
433433
href: download-tools-nuget.md
434+
- name: Install Power Apps CLI
435+
href: powerapps-cli.md
434436
- name: Community Tools
435437
href: community-tools.md
436438
- name: Testing tools

powerapps-docs/developer/common-data-service/org-service/metadata-option-sets.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ context of the publisher set for the solution that the option set is created in.
2626
This prefix helps reduce the chance of creating duplicate option sets for a managed solution,
2727
and in any option sets that are defined in organizations where your managed solution is installed. For more information,
2828
see [Merge option set options](../understand-managed-solutions-merged.md#merge-option-set-options).
29-
29+
30+
You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/WorkWithOptionSets).
31+
3032
## Messages Request Classes
3133

3234
Use the following message request classes to work with global option sets

powerapps-docs/developer/common-data-service/org-service/metadata-relationshipmetadata.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Create and retrieve entity relationship (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Shows code samples to create and retrieve entity relationships." # 115-145 characters including spaces. This abstract displays in the search result.
44
ms.custom: ""
5-
ms.date: 10/31/2018
5+
ms.date: 01/28/2020
66
ms.reviewer: ""
77
ms.service: powerapps
88
ms.topic: "article"
@@ -17,12 +17,12 @@ search.app:
1717
---
1818
# Create and retrieve entity relationships
1919

20-
<!-- https://docs.microsoft.com/dynamics365/customer-engagement/developer/org-service/create-retrieve-entity-relationships -->
21-
22-
This topic shows how to create and retrieve entity relationships.
20+
This topic shows how to create and retrieve entity relationships. You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/CreateRetrieveEntityRelationships).
2321

2422
<a name="BKMK_Create1NEntityRelationship"></a>
23+
2524
## Create a 1:N entity relationship
25+
2626
The following sample uses the [EligibleCreateOneToManyRelationship](#eligiblecreateonetomanyrelationship) method to verify that the `Account` and `Campaign` entities can participate in a 1:N entity relationship and then creates the entity relationship by using <xref:Microsoft.Xrm.Sdk.Messages.CreateOneToManyRequest>.
2727

2828
```csharp
@@ -68,7 +68,7 @@ if (eligibleCreateOneToManyRelationship)
6868

6969

7070
CreateOneToManyResponse createOneToManyRelationshipResponse =
71-
(CreateOneToManyResponse)_serviceProxy.Execute(
71+
(CreateOneToManyResponse)service.Execute(
7272
createOneToManyRelationshipRequest);
7373

7474
_oneToManyRelationshipId =
@@ -106,7 +106,7 @@ public bool EligibleCreateOneToManyRelationship(string referencedEntity,
106106
};
107107

108108
CanBeReferencedResponse canBeReferencedResponse =
109-
(CanBeReferencedResponse)_serviceProxy.Execute(canBeReferencedRequest);
109+
(CanBeReferencedResponse)service.Execute(canBeReferencedRequest);
110110

111111
if (!canBeReferencedResponse.CanBeReferenced)
112112
{
@@ -123,7 +123,7 @@ public bool EligibleCreateOneToManyRelationship(string referencedEntity,
123123
};
124124

125125
CanBeReferencingResponse canBeReferencingResponse =
126-
(CanBeReferencingResponse)_serviceProxy.Execute(canBereferencingRequest);
126+
(CanBeReferencingResponse)service.Execute(canBereferencingRequest);
127127

128128
if (!canBeReferencingResponse.CanBeReferencing)
129129
{
@@ -189,7 +189,7 @@ if (accountEligibleParticipate && campaignEligibleParticipate)
189189
};
190190

191191
CreateManyToManyResponse createManytoManyRelationshipResponse =
192-
(CreateManyToManyResponse)_serviceProxy.Execute(
192+
(CreateManyToManyResponse)service.Execute(
193193
createManyToManyRelationshipRequest);
194194

195195

@@ -224,7 +224,7 @@ public bool EligibleCreateManyToManyRelationship(string entity)
224224
};
225225

226226
CanManyToManyResponse canManyToManyResponse =
227-
(CanManyToManyResponse)_serviceProxy.Execute(canManyToManyRequest);
227+
(CanManyToManyResponse)service.Execute(canManyToManyRequest);
228228

229229
if (!canManyToManyResponse.CanManyToMany)
230230
{
@@ -248,15 +248,15 @@ public bool EligibleCreateManyToManyRelationship(string entity)
248248
RetrieveRelationshipRequest retrieveOneToManyRequest =
249249
new RetrieveRelationshipRequest { MetadataId = _oneToManyRelationshipId };
250250
RetrieveRelationshipResponse retrieveOneToManyResponse =
251-
(RetrieveRelationshipResponse)_serviceProxy.Execute(retrieveOneToManyRequest);
251+
(RetrieveRelationshipResponse)service.Execute(retrieveOneToManyRequest);
252252

253253
Console.WriteLine("Retrieved {0} One-to-many relationship by id", retrieveOneToManyResponse.RelationshipMetadata.SchemaName);
254254

255255
//Retrieve the Many-to-many relationship using the Name.
256256
RetrieveRelationshipRequest retrieveManyToManyRequest =
257257
new RetrieveRelationshipRequest { Name = _manyToManyRelationshipName};
258258
RetrieveRelationshipResponse retrieveManyToManyResponse =
259-
(RetrieveRelationshipResponse)_serviceProxy.Execute(retrieveManyToManyRequest);
259+
(RetrieveRelationshipResponse)service.Execute(retrieveManyToManyRequest);
260260

261261
Console.WriteLine("Retrieved {0} Many-to-Many relationship by Name", retrieveManyToManyResponse.RelationshipMetadata.MetadataId);
262262
```

powerapps-docs/developer/common-data-service/org-service/samples/create-retrieve-outlook-filters.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Checks for the current version of the org.
3636

3737
### Demonstrate
3838

39-
The `SavedQuery` method creates and retrieves the offline filter. In your Outlook client , this will appear in the System filters tab under **File** > **CRM** > **Synchronize** > **Outlook Filters**.
39+
1. The `fetchXml` method creates asn retrieves offline filter. In your Outlook client, this will appear in System Filters tab under **File -> CRM -> Synchronize -> Outlook Filters**.
40+
2. The `InstantiateFiltersRequest` method activates the selected offline templates for the current user.
41+
3. The `ResetUserFilterRequest` method resets the current user's offline templates to the defaults.
4042

4143
### Clean up
4244

43-
No Clean up is required for this sample.
45+
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
4446

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: " Download report definition (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to download report definition" # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 12/20/2019
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
20+
# Download report definition
21+
22+
This sample shows how to download a report definition (.rdl) file by using the [DownloadReportDefinitionRequest](https://docs.microsoft.com/dotnet/api/microsoft.crm.sdk.messages.downloadreportdefinitionrequest?view=dynamics-general-ce-9) message. You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/DownloadReportDefinition).
23+
24+
## How to run this sample
25+
26+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
27+
28+
## What this sample does
29+
30+
The `DownloadReportDefinitionRequest` message is intended to be used in a scenario where it contains the data that is needed to download a report definition.
31+
32+
## How this sample works
33+
34+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
35+
36+
### Setup
37+
38+
Checks for the current version of the org.
39+
40+
### Demonstrate
41+
42+
1. The `QueryByAttribute` method queries for an existing report.
43+
2. The `DownloadReportDefinitionRequest` method downloads the report definition.
44+
45+
### Clean up
46+
47+
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: "Query data using LINQ (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to assign records to a team." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 02/05/2020
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "phecke" # GitHub ID
10+
ms.author: "pehecke" # MSFT alias of Microsoft employees only
11+
manager: "KumarVivek" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# Sample: Query data using LINQ
19+
20+
These samples show how to query business data using [Language-Integrated Query (LINQ)](https://docs.microsoft.com/dotnet/csharp/programming-guide/concepts/linq/introduction-to-linq-queries). You can download the sample from [here](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/QueriesUsingLINQ).
21+
22+
## How to run this sample
23+
24+
See [How to run samples](https://github.com/microsoft/PowerApps-Samples/blob/master/cds/README.md) for information about how to run this sample. There are multiple projects in the solution. Each project demonstrates some aspect of LINQ queries.
25+
26+
## What this sample does
27+
28+
Read each sample's comments to find out what each sample does. There are samples that:
29+
* Create a simple LINQ query
30+
* Create a LINQ query using entity late binding
31+
* Retrieve multiple records using condition operators
32+
* Complex queries - a wide assortment of LINQ examples
33+
34+
## How this sample works
35+
36+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
37+
38+
### Setup
39+
40+
Creates any entity instances required by the `Demonstrate` region of each `Main`() method.
41+
42+
### Demonstrate
43+
44+
Code in the `Demonstrate` region of the `Main`() method performs one or more LINQ queries.
45+
46+
### Clean up
47+
48+
Displays an option to delete the records created in [Setup](#setup).
49+
50+
The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.

powerapps-docs/developer/common-data-service/org-service/samples/toc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@
258258
items:
259259
- name: Execute multiple requests
260260
href: execute-multiple-requests.md
261-
- name: Execute multiple requests in trnasaction
262-
hre4f: execute-multiple-transaction.md
261+
- name: Execute multiple requests in transaction
262+
href: execute-multiple-transaction.md
263263
- name: Solutions
264264
items:
265265
- name: Work with solutions
@@ -272,6 +272,8 @@
272272
href: retrieve-time-zone-information.md
273273
- name: Query Data
274274
items:
275+
- name: Query data using LINQ
276+
href: query-using-linq.md
275277
- name: Use QueryExpression with a paging cookie
276278
href: use-queryexpression-with-a-paging-cookie.md
277279
- name: Retrieve multiple with the QueryExpression class
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: " Use Outlook methods (Common Data Service) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
3+
description: "This sample showcases how to use the Outlook methods." # 115-145 characters including spaces. This abstract displays in the search result.
4+
ms.custom: ""
5+
ms.date: 12/20/2019
6+
ms.reviewer: ""
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "ryjones" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
19+
# Sample: Use Dynamics 365 for Outlook methods
20+
21+
This sample shows how to use the methods available in the [Microsoft.Crm.Outlook.Sdk.dll](https://docs.microsoft.com/dotnet/api/microsoft.crm.outlook.sdk?view=dynamics-outlookclient-ce-9) assembly. You can download the sample from [here]().
22+
23+
## How to run this sample
24+
25+
[!include[cc-how-to-run-samples](../../includes/cc-how-to-run-samples.md)]
26+
27+
## What this sample does
28+
29+
The `Microsoft.Crm.Outlook.sdk` assembly is used in a scenario where it contains types that provide programmatic interaction with Microsoft Dynamics 365 for Outlook and Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access.
30+
31+
## How this sample works
32+
33+
In order to simulate the scenario described above, the sample will do the following:
34+
35+
### Setup
36+
37+
Checks for the current version of the org.
38+
39+
### Demonstrate
40+
41+
1. The `CrmOutlookService` method sets up the service.
42+
2. The `CrmOutlookService.IsCrmClientOffline` method checks if the client is offline.
43+
3. The `CrmOutlookService.GoOnline()` method takes the client to online. This method will automatically sync up with database, there is no need to call the `Sync()` method.
44+
45+
### Clean up
46+
47+
Display an option to delete the sample data that is created in [Setup](#setup). The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: Install Power Apps CLI | Microsoft Docs
3+
description: "Get the Microsoft Power Apps CLI to create, debug, and deploy code components using Power Apps component framework."
4+
keywords: Power Apps CLI, code components, component framework, CLI
5+
ms.author: nabuthuk
6+
author: Nkrb
7+
manager: kvivek
8+
ms.date: 01/28/2020
9+
ms.service: "powerapps"
10+
ms.suite: ""
11+
ms.tgt_pltfrm: ""
12+
ms.topic: "article"
13+
ms.assetid: f393f227-7a88-4f25-9036-780b3bf14070
14+
---
15+
16+
# What is Microsoft Power Apps CLI?
17+
18+
Microsoft Power Apps CLI is a simple, single-stop developer command-line interface that empowers developers and app makers to create code components.
19+
20+
Power Apps CLI tooling is the first step toward a comprehensive application life cycle management (ALM) story where the enterprise developers and ISVs can create, build, debug, and publish their extensions and customizations quickly and efficiently.
21+
22+
## Install Power Apps CLI
23+
24+
To get Power Apps CLI, do the following:
25+
26+
1. Install [Npm](https://www.npmjs.com/get-npm) (comes with Node.js) or [Node.js](https://nodejs.org/en/) (comes with npm). We recommend LTS (Long Term Support) version 10.15.3 or higher.
27+
28+
1. Install [.NET Framework 4.6.2 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net462).
29+
30+
1. If you don’t already have Visual Studio 2017 or later, follow one of these options:
31+
- Option 1: Install [Visual Studio 2017](https://docs.microsoft.com/visualstudio/install/install-visual-studio?view=vs-2017) or later.
32+
- Option 2: Install [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/current) and then install [Visual Studio Code](https://code.visualstudio.com/Download).
33+
34+
1. Install [Power Apps CLI](https://aka.ms/PowerAppsCLI).
35+
36+
1. To take advantage of all the latest capabilities, update the Power Apps CLI tooling to the latest version using this command:
37+
38+
```CLI
39+
pac install latest
40+
```
41+
42+
> [!NOTE]
43+
> Currently, Power Apps CLI is supported only on Windows 10.
44+
45+
## Common commands
46+
47+
This table lists some common commands used in the CLI:
48+
49+
|Command|Description|Examples|
50+
|------|-----------|--------|
51+
|**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.| `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>`|
52+
|**solution**|Commands for working with Common Data Service solution projects. 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 `name`, `version`, and `include`|`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+
|**auth**|Commands to authenticate to Common Data Service. It has the following parameters: <br/> - **create**: Creates the authentication profile for your organization by passing the `url` parameter. You need to 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.|`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>`|
54+
|**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+
|**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`|
57+
58+
## Uninstall Power Apps CLI
59+
60+
To uninstall the Power Apps CLI tooling, run the MSI from [here](https://aka.ms/PowerAppsCLI).
61+
62+
If you are a **Private Preview** participant and have an older version of CLI, follow these steps:
63+
64+
1. To find out where the Power Apps CLI is installed, open a command prompt and type `where pac`.
65+
66+
1. Delete the PowerAppsCLI folder.
67+
68+
1. Open the Environment Variables tool by running the command `rundll32 sysdm.cpl,EditEnvironmentVariables` in the command prompt.
69+
70+
1. Double-click `Path` under the `User variable for...` section.
71+
72+
1. Select the row containing the PowerAppsCLI path and select the **Delete** button on the right-hand side.
73+
74+
1. Select **OK** twice.
75+
76+
77+
## See also
78+
79+
[Power Apps component framework](../component-framework/overview.md)

powerapps-docs/developer/component-framework/community-resources.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ The following is the list of videos created by Power Apps community.
6464
- [Power Apps component framework Academy: Working with manifest file](https://www.youtube.com/watch?v=qbSpDVTxt7U&t=5s)
6565
- [Power Apps component framework code components](https://www.youtube.com/watch?v=FxWF-LCCB4g&feature=youtu.be)
6666

67-
6867
## Tools
6968

7069
The [Code component builder](https://www.xrmtoolbox.com/plugins/Maverick.PCF.Builder/) is a tool from XrmToolBox that lets you create code components in visual manner using the Power Apps CLI.

0 commit comments

Comments
 (0)