Skip to content

Commit 766ec05

Browse files
committed
Merge branch 'master' into v-ljoel-milestonesupdate
2 parents 4966f91 + dd8d6f3 commit 766ec05

File tree

379 files changed

+7946
-6861
lines changed

Some content is hidden

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

379 files changed

+7946
-6861
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6279,6 +6279,11 @@
62796279
"source_path": "powerapps-docs/developer/data-platform/developer-resources-page.md",
62806280
"redirect_url": "/powerapps/developer/data-platform/view-download-developer-resources",
62816281
"redirect_document_id": "false"
6282+
},
6283+
{
6284+
"source_path": "powerapps-docs/maker/data-platform/business-events.md",
6285+
"redirect_url": "/powerapps/developer/data-platform/business-events",
6286+
"redirect_document_id": "false"
62826287
}
62836288
]
62846289
}

powerapps-docs/developer/component-framework/add-custom-controls-to-a-field-or-entity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Following the steps below will change the default label and text box column of t
7474

7575
## Add code component to a table
7676

77-
To add a code component like data-set component or simple table component to a grid or view, follow the steps below:
77+
To add a code component like dataset component or simple table component to a grid or view, follow the steps below:
7878

7979
- Navigate to **Settings > Customizations** and click on **Customize the System**.
8080
- Click on the arrow next to **Entities** tab a select the table you want to add the code component.

powerapps-docs/developer/component-framework/code-components-model-driven-apps.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Code components for canvas apps | Microsoft Docs
3-
description: Learn how to create code components using Power Apps component framework for canvas apps
2+
title: Code components for model-driven apps | Microsoft Docs
3+
description: Learn how to create code components using Power Apps component framework for model-driven apps
44
keywords:
55
ms.author: nabuthuk
66
author: Nkrb
@@ -15,9 +15,7 @@ ms.assetid: 5d100dc3-bd82-4b45-964c-d90eaebc0735
1515

1616
# Code components for model-driven apps
1717

18-
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
19-
20-
Power Apps component framework gives developers the ability to extend the visualizations in model-driven apps. Professional developers can create, debug, import, and add code components to model-driven apps using [Power Apps CLI](get-powerapps-cli.md). You can add code components to columns, grids, and sub grids in model-driven apps.
18+
Power Apps component framework gives developers the ability to extend the visualizations in model-driven apps. Professional developers can create, debug, import, and add code components to model-driven apps using [Microsoft Power Platform CLI](get-powerapps-cli.md). You can add code components to columns, grids, and sub grids in model-driven apps.
2119

2220
> [!IMPORTANT]
2321
> Power Apps component framework is enabled for model-driven apps by default. See [Code components for canvas apps](component-framework-for-canvas-apps.md) to learn how to enable Power Apps component framework for canvas apps.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.topic: "article"
1616

1717
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
1818

19-
The following is a list of some community resources created by the Power Apps community that you can use to create code components in model-driven and canvas apps using Power Apps component framework and Power Apps CLI.
19+
The following is a list of some community resources created by the Power Apps community that you can use to create code components in model-driven and canvas apps using Power Apps component framework and Microsoft Power Platform CLI.
2020

2121
> [!NOTE]
2222
> Resources created by the community are not supported by Microsoft. If you have questions or issues with community resources, contact the publisher of the resource. Before using these resources, you must ensure that these community resources meet the Power Apps component framework guidelines and should only be used for reference purpose.
@@ -76,7 +76,7 @@ The following is the list of blogs created by Power Apps community.
7676

7777
## Tools
7878

79-
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.
79+
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 Microsoft Power Platform CLI.
8080

8181

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

powerapps-docs/developer/component-framework/component-framework-for-canvas-apps.md

Lines changed: 43 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
ms.author: nabuthuk
66
author: Nkrb
77
manager: kvivek
8-
ms.date: 11/26/2019
8+
ms.date: 06/08/2021
99
ms.service: "powerapps"
1010
ms.suite: ""
1111
ms.tgt_pltfrm: ""
@@ -15,44 +15,54 @@ ms.assetid: 5d100dc3-bd82-4b45-964c-d90eaebc0735
1515

1616
# Code components for canvas apps
1717

18-
Power Apps component framework enables app makers to create code components to use in an app or across the apps. More information: [Power Apps component framework overview](overview.md)
18+
Power Apps component framework enables app makers to create code components that can be used in their canvas apps. More information: [Power Apps component framework overview](overview.md)
1919

20-
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
20+
Power Apps component framework enables professional developers to create, import, and add code components to canvas applications using [Microsoft Power Platform CLI](get-powerapps-cli.md). Certain APIs may not be available in canvas Apps. We recommend you check each API to determine where it is available.
2121

22-
In this public preview, Power Apps component framework enables app makers to create code components, debug, import, and add them to canvas apps using the Power Apps CLI tooling. Only specific APIs are supported in this public preview. We recommend you to check each API to determine whether it supports canvas apps.
22+
## Security considerations
2323

2424
> [!WARNING]
25-
> Code components contain code that may not be generated by Microsoft and can potentially access security tokens and data. When adding code components to an app, make sure that the code component solutions are from a trusted source.
25+
> Code components contain code that may not be generated by Microsoft and can potentially access security tokens and data when rendered in Power Apps Studio. When adding code components to a canvas app, make sure that the code component solutions are from a trusted source. This vulnerability does not exist when playing the canvas app.
26+
27+
When you open a canvas app in Power Apps Studio that contains code components, a dialog shows a warning message about potentially unsafe code. Code components in the Power Apps Studio environment have access to security tokens and hence only components from the trusted sources should be opened. Administrators and system customizers should review and validate all the code components before importing those components in an environment and making them available for makers to use in their apps. The `Default` publisher is shown when you import code components using an unmanaged solution or when you have used `pac pcf push` to install your code component.
28+
29+
![Safety warning](media/canvas-app-safety-warning.png "Safety warning")
2630

2731
## Prerequisites
2832

2933
1. A Power Apps license is required. More information: [Power Apps component framework licensing](overview.md#licensing)
30-
2. System Administrator privileges are required to enable the Power Apps component feature in the environment.
34+
2. System administrator privileges are required to enable the Power Apps component feature in the environment.
3135

3236
## Enable Power Apps component framework feature
3337

34-
To add code components to an app, you need to enable the Power Apps component framework feature in each environment where you want to use them. To enable an environment to use code components inside its apps:
38+
To add code components to an app, you need to enable the Power Apps component framework feature in each environment where you want to use them. By default Power Apps component feature is enabled for model-driven apps. To enable an environment to use code components inside its apps:
3539

3640
1. Sign in to [Power Apps](https://powerapps.microsoft.com/).
3741

3842
2. Select the **Settings** icon and then select **Admin Center**.
3943

40-
![Settings and Admin Center](media/select-admin-center-from-settings.png "Settings and Admin Center")
44+
> [!div class="mx-imgBorder"]
45+
> ![Settings and Admin Center](media/select-admin-center-from-settings.png "Settings and Admin Center")
4146
42-
3. Select the **Environments** tab in the left pane and select the environment where you want to enable this feature, select the ellipsis (**...**), and then select **Settings**.
47+
3. Select the **Environments** tab in the left pane and select the environment where you want to enable this feature and then select **Settings**.
4348

4449
4. Under the **Products** tab, select **Features**.
4550

46-
![Enable Power Apps component framework](media/enable-pcf-feature.png "Enable Power Apps component framework")
51+
> [!div class="mx-imgBorder"]
52+
> ![Enable Power Apps component framework](media/enable-pcf-feature.png "Enable Power Apps component framework")
4753
4854
5. From the list of available features, set the switch to **On** under **Power Apps component framework for canvas apps** and click **Save**.
4955

5056
6. Now, open the app where you want to add the code component and navigate to **File** > **Settings** and select **Advanced settings**.
5157

52-
![Enable components for Power Apps component framework](media/enable-components-for-pcf.png "Enable components for Power Apps component framework")
58+
> [!div class="mx-imgBorder"]
59+
> ![Enable components for Power Apps component framework](media/enable-components-for-pcf.png "Enable components for Power Apps component framework")
5360
5461
7. Turn the **Components** switch to **On** under the **Experimental feature** section.
5562

63+
> [!NOTE]
64+
> When creating new canvas apps, steps 6 & 7 is enabled by default.
65+
5666
## Implementing code components
5767

5868
After you enable the Power Apps component framework feature in your environment, you can start implementing the logic for code components.
@@ -67,19 +77,33 @@ To add code components to a canvas app:
6777
2. Create a new canvas app or edit an existing app to which you want to add the code component.
6878

6979
> [!IMPORTANT]
70-
> Make sure the solution zip file is already [imported](../../maker/data-platform/import-update-export-solutions.md) into Microsoft Dataverse before you proceed to the next step.
80+
> Make sure the solution zip file containing code components is already [imported](../../maker/data-platform/import-update-export-solutions.md) into Microsoft Dataverse before you proceed to the next step.
7181
72-
3. Go to **Insert** > **Custom** > **Import component**.
82+
3. In the left pane select **+** icon and then select **Get more components**.
7383

74-
![Insert components](media/insert-components-import.png "Insert components")
84+
> [!div class="mx-imgBorder"]
85+
> ![Insert components](media/insert-code-components-using-get-more-components.png "Insert components")
7586
76-
4. Select the **Code** tab, add a component from the list, and then select **Import**.
87+
4. Select the **Code** tab, select a component from the list, and then select **Import**.
7788

78-
![Import sample component](media/import-component-add-sample-component.png "Import sample component")
89+
> [!div class="mx-imgBorder"]
90+
> ![Import sample component](media/insert-component-add-sample-component.png "Import sample component")
7991
80-
5. Click the **+** icon on the left pane and expand the code components tab to add the sample component.
92+
5. Select the **+** icon on the left pane and expand the code components tab and select to add the sample component.
93+
94+
> [!div class="mx-imgBorder"]
95+
> ![Add sample component](media/add-sample-component-from-list.png "Add sample component")
96+
97+
> [!NOTE]
98+
> You can also add components by selecting **Insert** > **Custom** > **Import component**. This option will be removed in a future release, so we suggest using the flow described above.
99+
100+
6. In the **Properties** tab, you'll notice the code component properties displayed.
101+
102+
> [!div class="mx-imgBorder"]
103+
> ![Default code component properties pane](media/property-pane-with-parameters.png "Default code components properties pane")
81104
82-
![Add sample component](media/add-sample-component-from-list.png "Add sample component")
105+
> [!NOTE]
106+
> Existing code components can be re-imported by updating the code component's manifest version if you want the properties to be available in the default **Properties** tab. Like in the past the properties will continue to be available in the advanced properties panel.
83107
84108
## Delete a code component
85109

@@ -96,7 +120,7 @@ To delete a code component from a canvas app:
96120

97121
## Update existing code components
98122

99-
Whenever you update the code components and want to see the changes in runtime, you need to bump the `version` property in the manifest file. It is recommended to always bump the version of the component whenever you make changes.
123+
Whenever you update the code components and want to see the runtime changes, you need to bump the `version` property in the manifest file. It is recommended to always bump the version of the component whenever you make changes.
100124

101125
> [!NOTE]
102126
> Existing code components are updated only when the app is closed or reopened in Power Apps Studio. When you reopen the app, it asks you to update the code components. Simply deleting the code components or adding the code component back into the app doesn't update the components.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ ms.assetid: d2cbf58a-9112-45c2-b823-2c07a310714c
1515

1616
# Create and build a code component
1717

18-
This article demonstrates how to create and deploy code components using Power Apps CLI. Ensure that you have installed [Microsoft Power Apps CLI](https://aka.ms/PowerAppsCLI).
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).
1919

2020
[!INCLUDE[cc-terminology](../data-platform/includes/cc-terminology.md)]
2121

2222
## Create a new component
2323

24-
To begin, open **Developer Command Prompt for VS 2017 or higher** after installing Power Apps CLI.
24+
To begin, open **Developer Command Prompt for VS 2017 or higher** after installing Microsoft Power Platform CLI.
2525

2626
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>`.
2727
2. Go to the newly created folder using the command `cd <specify your new folder path>`.
@@ -32,7 +32,7 @@ To begin, open **Developer Command Prompt for VS 2017 or higher** after installi
3232
```
3333
3434
> [!NOTE]
35-
> Currently, Power Apps CLI supports two types of components: **field** and **dataset** for model-driven apps. For canvas apps, only the **field** type is supported for this experimental preview.
35+
> Currently, Microsoft Power Platform CLI supports two types of components: **field** and **dataset** for model-driven apps. For canvas apps, only the **field** type is supported for this experimental preview.
3636
3737
4. To retrieve all the required project dependencies, run the command `npm install`.
3838
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.

0 commit comments

Comments
 (0)