Create Framework for PCF Project

Create a folder where you want to store all the files of your project. I have created a folder named DemoPCFProject. Open NodeJS Command Prompt and navigate to the newly created folder using cd command.

Run below command to create the PCF Project and install npm

pac pcf init --namespace PCFNameSpace --name DempPCFComponent --template field
npm install

You can check the files are created in the folder

There are two types of components you can create: field and dataset

While still in NodeJS Command Prompt, type code. to open the folder in Visual Studio Code.

You can now edit the project and add business logic into it.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s