Component Framework
Neil Haddley • August 14, 2022
Component Framework
I created code components for model-driven and canvas apps.
Developers can use Power Apps component framework to create, import, and add code components to model-driven and canvas apps. Certain APIs are not available.

I navigated to the Admin center

I selected the p8lf environment

I searched for settings

I turned on Power Apps component framework

I noted the Web API endpoint URL

I installed the Power Platform Tools Visual Studio Extension

Power Platform Tools was installed

The framework was not found

I installed the x64 version of the framework

I ran pac (help)

I ran pac pcf init --namespace haddley --name virtualcontrol --template field --framework react

I ran pac auth create --url https://org6bf9e824.api.crm.dynamics.com

Authentication was successful

I ran npm run start (after running npm i -g webpack and npm link webpack)

The component was running in the test environment

I ran pac pcf push --publisher-prefix nlh

The component was pushed to the Power Apps environment

I reviewed the contents of the solution

I created a test solution

I created a new model-driven app

I named the model-driven app

I added a page

I selected Table based view and form

I selected the "Account" entity/table

I switched to classic

I edited the Information form for this entity

I added a code component for Web, Mobile and Tablet displays

The default Single-line text control would not be used

I reviewed the new Account form using the code control