Skip to content

Commit 7da0cb9

Browse files
authored
Merge pull request #7624 from MicrosoftDocs/main
updating
2 parents 4a43ab4 + ff75f10 commit 7da0cb9

File tree

54 files changed

+439
-352
lines changed

Some content is hidden

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

54 files changed

+439
-352
lines changed

.openpublishing.redirection.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7240,16 +7240,6 @@
72407240
"redirect_url": "powerapps-docs/maker/portals/admin/update-dynamics365-instance.md",
72417241
"redirect_document_id": "false"
72427242
},
7243-
{
7244-
"source_path": "powerapps-docs/user/cs-email-template-builder.md",
7245-
"redirect_url": "/dynamics365/customer-service/cs-email-template-builder",
7246-
"redirect_document_id": false
7247-
},
7248-
{
7249-
"source_path": "powerapps-docs/user/customize-insert-email-template.md",
7250-
"redirect_url": "/dynamics365/customer-service/customize-insert-email-template",
7251-
"redirect_document_id": "false"
7252-
},
72537243
{
72547244
"source_path": "powerapps-docs/teams/boards-architecture.md",
72557245
"redirect_url": "https://github.com/microsoft/teams-powerapps-app-templates",

powerapps-docs/developer/component-framework/create-custom-controls-using-pcf.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,46 @@ keywords: Power Apps component framework, code components, Component Framework
55
ms.author: noazarur
66
author: noazarur-microsoft
77
manager: lwelicki
8-
ms.date: 05/27/2022
8+
ms.date: 01/27/2023
99
ms.reviewer: jdaly
1010
ms.topic: article
1111
ms.subservice: pcf
1212
contributors:
1313
- JimDaly
14+
- kaushikkaul
1415
---
1516

1617
# Create and build a code component
1718

18-
This article demonstrates how to create and deploy code components using Microsoft Power Platform CLI. Ensure that you have installed [Microsoft Power Platform CLI](https://aka.ms/PowerAppsCLI).
19+
This article demonstrates how to create and deploy code components using Microsoft Power Platform CLI.
1920

20-
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
21+
## Prerequisites
2122

22-
## Create a new component
23+
You need install the following components:
24+
25+
1. [Visual Studio Code (VSCode)](https://code.visualstudio.com/Download) (Ensure the Add to PATH option is select)
26+
1. [node.js](https://nodejs.org/en/download/) (LTS version is recommended)
27+
1. [Microsoft Power Platform CLI](/powerapps/developer/data-platform/powerapps-cli#install-power-apps-cli) (Use the Visual Studio Code extension)
2328

24-
To begin, open **Developer Command Prompt for VS 2017 or higher** after installing Microsoft Power Platform CLI.
29+
## Create a new component
2530

26-
1. In the Developer Command Prompt, create a new folder on your local machine, for example, *C:\Users\your name\Documents\My_code_Component* using the command `mkdir <Specify the folder name>`.
27-
2. Go to the newly created folder using the command `cd <specify your new folder path>`.
28-
3. Create a new component project by passing some basic parameters using the [pac pcf init](/power-platform/developer/cli/reference/pcf#pac-pcf-init) command:
31+
Open Visual Studio code and open a new terminal window by selecting **Terminal** > **New Terminal**.
32+
1. In the terminal window, create a new folder on your local machine, for example, *C:\projects\My_code_Component* using the command `mkdir <Specify the folder name>`.
33+
1. Go to the newly created folder using the command `cd <specify your new folder path>`.
34+
1. Create a new component project by passing some basic parameters using the [pac pcf init](/power-platform/developer/cli/reference/pcf#pac-pcf-init) command:
2935

3036
```CLI
31-
pac pcf init --namespace <specify your namespace here> --name <Name of the code component> --template <component type>
37+
pac pcf init --namespace <specify your namespace here> --name <Name of the code component> --template <component type> --run-npm-install
3238
```
33-
4. The above command will also run `npm install` command for you to retrieve all the required project dependencies.
34-
5. Open your project folder `C:\Users\<your name>\Documents\<My_code_Component>` in any developer environment of your choice and get started with your code component development. The quickest way to get started is by running `code .` from your command prompt once you are in the `C:\Users\<your name>\Documents\<My_code_Component>` directory. This command opens your component project in Visual Studio Code.
35-
6. Implement the required artifacts for the component like manifest, component logic, and styling and then build the component project. More information: [Create your first code component](implementing-controls-using-typescript.md)
39+
1. The above command will also run `npm install` command for you to retrieve all the required project dependencies.
40+
1. Open your project folder `C:\projects\My_code_Component` in any developer environment of your choice and get started with your code component development. The quickest way to get started is by running `code .` from your command prompt once you are in the `C:\projects\My_code_Component` directory. This command opens your component project in Visual Studio Code.
41+
1. Implement the required artifacts for the component like manifest, component logic, and styling and then build the component project. More information: [Create your first code component](implementing-controls-using-typescript.md)
3642
3743
## Build your component
3844
39-
To build the component project, open the project folder that contains `package.json` in Visual Studio Code and use the (Ctrl-Shift-B) command, then select the build options.
45+
To build the component project, open the project folder that contains `package.json` in Visual Studio Code and use the (Ctrl-Shift-B) command, then select the build options.
4046
41-
Alternatively, you can build the component quickly using the `npm run build` command in the Developer Command Prompt for VS 2017 window for development purposes, or use `npm run build -- --buildMode production` for building a release version.
47+
Alternatively, you can build the component quickly using the `npm run build` command in the Visual Studio Code terminal window for development purposes, or use `npm run build -- --buildMode production` for building a release version.
4248
4349
> [!TIP]
4450
> To debug the component during or after the build operation, see [Debug a code component](debugging-custom-controls.md).

powerapps-docs/developer/data-platform/authenticate-office365-deprecation.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Use of Office365 authentication with Microsoft Dataverse (Microsoft Dataverse) | Microsoft Docs" # Intent and product brand in a unique string of 43-59 chars including spaces
33
description: "Describes deprecation of the WS-Trust security protocol and the code changes required in applications that use Office365 authentication."
44
ms.custom: ""
5-
ms.date: 01/06/2022
5+
ms.date: 01/23/2023
66
ms.reviewer: "pehecke"
77

88
ms.topic: "article"
@@ -23,10 +23,7 @@ search.app:
2323
> Use of the WS-Trust (Office365) authentication security protocol when connecting to Microsoft Dataverse is no longer recommended and has been deprecated; see the [announcement](/power-platform/important-changes-coming#deprecation-of-office365-authentication-type-and-organizationserviceproxy-class-for-connecting-to-dataverse).<p/>
2424
> Additionally, the WS-Trust protocol does not support modern forms of multi-factor authentication and Azure AD Conditional Access controls to customer data.
2525
26-
This document describes the impact to and required authentication code changes for custom client applications that use “Office365” authentication and the
27-
[Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy](/dotnet/api/microsoft.xrm.sdk.client.organizationserviceproxy) or
28-
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient)
29-
classes. If your applications use this type of authentication protocol and API,
26+
This document describes the impact to and required authentication code changes for custom client applications that use “Office365” authentication and the <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy>, <xref:Microsoft.PowerPlatform.Dataverse.Client.ServiceClient>, or <xref:Microsoft.Xrm.Tooling.Connector.CrmServiceClient> classes. If your applications use this type of authentication protocol and API,
3027
continue reading below to learn more about the recommended authentication changes to be made to your application’s code.
3128

3229
## How do I know if my code or application is using WS-Trust?
@@ -37,11 +34,11 @@ workflow activities, or on-premises/IFD service connections.
3734

3835
- If your code employs user account and password credentials for authentication with Dataverse or an application, you are likely using the WS-Trust security protocol. Some examples are shown below, though this list is not fully inclusive.
3936

40-
- When using the [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient) class with a connection string:
37+
- When using the `CrmServiceClient` or `ServiceClient` class with a connection string:
4138

4239
`connectionString="AuthType=Office365; Username=jsmith\@contoso.onmicrosoft.com;Password=passcode;Url=https://contoso.crm.dynamics.com"`
4340

44-
- When using [OrganizationServiceProxy](/dotnet/api/microsoft.xrm.sdk.client.organizationserviceproxy) class constructors:
41+
- When using the `OrganizationServiceProxy` class constructors:
4542

4643
```csharp
4744
using (OrganizationServiceProxy organizationServiceProxy =
@@ -51,7 +48,7 @@ using (OrganizationServiceProxy organizationServiceProxy =
5148

5249
- If your code uses the `OrganizationServiceProxy` class at all, you are using WS-Trust.
5350

54-
- If your code is using [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient).`OrganizationServiceProxy`, you are using WS-Trust.
51+
- If your code is using <xref:Microsoft.Xrm.Tooling.Connector.CrmServiceClient>.`OrganizationServiceProxy`, you are using WS-Trust.
5552

5653
## What should I do to fix my application code if affected?
5754

@@ -61,19 +58,19 @@ the recommended connection interface for authentication with Dataverse.
6158
> [!IMPORTANT]
6259
> Keep your applications up to date with our latest client SDK API changes by downloading and using the latest available NuGet packages whenever possible.
6360

64-
- If your code uses an [Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy](/dotnet/api/microsoft.xrm.sdk.client.organizationserviceproxy) instance:
61+
- If your code uses an <xref:Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy> instance:
6562

66-
If you are passing the `OrganizationServiceProxy` instance around to various methods, or returning the instance from a method, replace all occurrences of the type `OrganizationServiceProxy` with the [IOrganizationService](/dotnet/api/microsoft.xrm.sdk.iorganizationservice) interface. This interface exposes all the core methods used to communicate with Dataverse.
63+
If you are passing the `OrganizationServiceProxy` instance around to various methods, or returning the instance from a method, replace all occurrences of the type `OrganizationServiceProxy` with the <xref:Microsoft.Xrm.Sdk.IOrganizationService> interface. This interface exposes all the core methods used to communicate with Dataverse.
6764

68-
When invoking the constructor, it is recommend you add the NuGet package [Microsoft.CrmSdk.XrmTooling.CoreAssembly](https://www.nuget.org/packages/Microsoft.CrmSdk.XrmTooling.CoreAssembly/) to your project and replace all use of `OrganizationServiceProxy` class constructors with [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient) class constructors. You will need to alter your coding pattern here, however, for simplicity `CrmServiceClient` supports connection strings in addition to complex constructors and the ability to provide external authentication handlers. `CrmServiceClient` implements `IOrganizationService`, therefore your new authentication code will be portable to the rest of your application code. You can find examples on the use of `CrmServiceClient` in the [PowerApps-Samples](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/orgsvc/C%23) repository.
65+
When invoking the constructor, it is recommend to replace all use of `OrganizationServiceProxy` class constructors with `CrmServiceClient` or `ServiceClient` class constructors. You will need to alter your coding pattern here, however, for simplicity `CrmServiceClient` and `ServiceClient` support connection strings in addition to complex constructors and the ability to provide external authentication handlers. The service client classes implements `IOrganizationService`, therefore your new authentication code will be portable to the rest of your application code. You can find examples on the use of service client calsses in the [PowerApps-Samples](https://github.com/microsoft/PowerApps-Samples/tree/master/dataverse/orgsvc/C%23) repository.
6966
70-
- If your code is using [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient) with theOffice365authentication type:
67+
- If your code is using <xref:Microsoft.PowerPlatform.Dataverse.Client.ServiceClient>, or <xref:Microsoft.Xrm.Tooling.Connector.CrmServiceClient> classes with theOffice365authentication type:
7168

7269
An example of this is a connections string that looks like this:
7370

7471
`connectionString = "AuthType=Office365;[email protected];Password=passcode;Url=https://contoso.crm.dynamics.com"`
7572

76-
Similarly, you could also be using a `CrmServiceClient` constructor and pass in `AuthType.Office365`.
73+
Similarly, you could also be using a `CrmServiceClient` or `ServiceClient` constructor and pass in `AuthType.Office365`.
7774

7875
- Switch over to using an OAuth based connection string. Such connection string looks like this:
7976

@@ -89,7 +86,7 @@ the recommended connection interface for authentication with Dataverse.
8986

9087
- If you are accessing the [CrmServiceClient](/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient).`OrganizationServiceProxy` property:
9188

92-
Remove all use of that property in your code. `CrmServiceClient` implements `IOrganizationService` and exposes everything that is settable for the organization service proxy.
89+
Remove all use of that property in your code. `CrmServiceClient` and `ServiceClient` classes implement `IOrganizationService` and exposes everything that is settable for the organization service proxy.
9390

9491
> [!IMPORTANT]
9592
> Regarding not being able to login using User ID/Password even if using OAuth: if your tenant and user is configured in Azure Active Directory for conditional access and/or Multi-Factor Authentication is required, you will not be able to use user ID/password flows in a non-interactive form at all. For those situations, you must use a Service Principal user to authenticate with Dataverse.<p/>

powerapps-docs/developer/data-platform/tools/devtools-create-plugin.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Quickstart: Create a plug-in using Power Platform Tools | Microsoft Docs"
33
description: "Learn how to create and register a Dataverse plug-in using the Power Platform Tools extension for Visual Studio."
44
ms.custom: ""
5-
ms.date: 06/20/2020
5+
ms.date: 01/27/2023
66
ms.reviewer: "pehecke"
77

88
ms.topic: "article"
@@ -25,10 +25,9 @@ If you already have an existing Dataverse solution set up, then follow these [in
2525

2626
## Prerequisites
2727

28-
- Visual Studio 2019
28+
- Visual Studio 2019 or 2022
2929
- Power Platform Tools extension for Visual Studio
30-
- C# language
31-
- .NET Framework 4.6.2 (only for plug-in or custom workflow activity development)
30+
- .NET Framework 4.6.2 is required for plug-in or custom workflow activity development
3231
- Power Apps/Dataverse subscription or a trial environment
3332

3433
## Connect to your Dataverse environment

powerapps-docs/developer/data-platform/tools/devtools-create-project.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Quickstart: Create a Power Platform Tools project | Microsoft Docs"
33
description: "Learn how to start a new Visual Studio project for plug-in or custom workflow assembly development using Power Platform Tools."
44
ms.custom: ""
5-
ms.date: 06/20/2020
5+
ms.date: 01/27/2023
66
ms.reviewer: "pehecke"
77

88
ms.topic: "article"
@@ -23,10 +23,10 @@ Like any Visual Studio solution, you begin by creating a new project. In the new
2323

2424
## Prerequisites
2525

26-
- Visual Studio 2019
26+
- Visual Studio 2019 or 2022
2727
- Power Platform Tools for Visual Studio
2828
- C# language
29-
- .NET Framework 4.6.2 (only for plug-in or custom workflow activity development)
29+
- .NET Framework 4.6.2 or greater - (plug-in and custom workflow activity development requires v4.6.2)
3030
- Power Apps/Dataverse subscription or a trial environment
3131
- Windows Workflow Foundation (only for custom workflow activity development)
3232

@@ -61,7 +61,7 @@ The easy way to create a Power Platform solution containing a CrmPackage project
6161

6262
1. In the Visual Studio new project dialog, search for and choose **Power Platform Solution Template** and then select **Next**.
6363

64-
1. Enter the requested project information, choose .NET Framework 4.6.2 or 4.7.2, and select **Create**. <p/>At this point you should see either a Dataverse login dialog or a dialog to reuse your last Dataverse connection. Do whatever is appropriate to connect to your Dataverse development environment. Never develop code in a production environment.
64+
1. Enter the requested project information, choose a .NET Framework version, and select **Create**. <p/>At this point you should see either a Dataverse login dialog or a dialog to reuse your last Dataverse connection. Do whatever is appropriate to connect to your Dataverse development environment. Never develop code in a production environment.
6565

6666
1. At the **Configure Microsoft Power Platform Solution** dialog, choose either to use an existing Dataverse solution or create a new solution. <p/>Depending on what you have chosen, you will either be prompted to enter information about the new solution or select the existing solution from a drop-down list. **Step #3 Select Solution** is displayed but won't be active until you are logged in and choose **Next** in step #2.
6767

@@ -85,7 +85,7 @@ Only projects created with a Power Platform Tools template should be added to a
8585

8686
1. Select one of the installed Power Platform Tools templates and select **Next**.
8787

88-
1. Fill in any required information and select **Create**. For a plug-in or workflow activity library, be sure to choose .NET Framework 4.6.2 (or 4.7.2).
88+
1. Fill in any required information and select **Create**. For a plug-in or workflow activity library, be sure to choose .NET Framework 4.6.2.
8989

9090
### Add an existing project to a Power Platform solution
9191

powerapps-docs/developer/data-platform/tools/devtools-install.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Install Power Platform Tools | Microsoft Docs"
33
description: "Learn how to install the Power Platform Tools extension for Visual Studio."
44
ms.custom: ""
5-
ms.date: 06/20/2022
5+
ms.date: 01/27/2023
66
ms.reviewer: "pehecke"
77

88
ms.topic: "article"
@@ -30,7 +30,7 @@ Power Platform Tools for Visual Studio supports the rapid creation, debugging, a
3030

3131
Before installing Power Platform Tools into Visual Studio you must have the following applications and frameworks installed on your development computer:
3232

33-
- Microsoft Visual Studio 2019.
33+
- Microsoft Visual Studio 2019 or 2022.
3434

3535
- .NET Framework 4.6.2 (required only for plug-in and workflow activity development)
3636

@@ -82,6 +82,7 @@ You can find a few Power Platform Tools options in Visual Studio by choosing **T
8282
### See Also
8383

8484
[Quickstart: Create a Power Platform Tools project](devtools-create-project.md)
85-
[Power Platform Tools on the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformTools)
85+
[Power Platform Tools extension for Visual Studio 2019](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformTools)
86+
[Power Platform Tools extension for Visual Studio 2022](https://marketplace.visualstudio.com/items?itemName=microsoft-IsvExpTools.PowerPlatformToolsVS2022)
8687

8788
[!INCLUDE[footer-include](../../../includes/footer-banner.md)]

0 commit comments

Comments
 (0)