Power Apps component framework empowers professional developers and app makers to create code components for model-driven and canvas apps. These code components can provide an enhanced experience for users working with data on forms, views, and dashboards. More information: Power Apps component framework overview
Power Pages now supports controls built for model-driven apps created using Power Apps component framework. To use code components in Power Pages site webpages, follow these steps:
After following these steps, your users can now interact with the code component using the webpage that has the respective form component.
Prerequisites
You must have System Administrator privileges to enable the code component feature in the environment.
Your Power Pages site version must be 9.3.3.x or higher.
Your starter site package must be 9.2.2103.x or higher.
Create and package code component
To learn about creating and packaging code components created Power Apps component framework, go to Create your first component.
Supported field types and formats
Power Pages supports restricted field types and formats for using code components. The following table lists all supported field data types and formats:
Select the form to which you want to add the code component.
Select Related.
Select Basic Form Metadata.
Select New Basic Form Metadata.
Select Type as Attribute.
Select Attribute Logical Name.
Enter Label.
For Control Style, select Code Component.
Save and close the form.
Code components using the portal Web API
A code component can be built and added to a webpage that can use the portal Web API to perform create, retrieve, update, and delete actions. This feature allows greater customization options when developing portal solutions. For more information, go to Implement a sample portal Web API component.