Posts

Showing posts from June, 2023

Creating a solution package for your first PCF Control.

Image
Hello Guys, In our previous  blog   we have seen how we can create PCF control. Today we will see how we can create solution package and how to use this solution in D365 CRM. Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. We will be working with same project which we created in our previous blog.  First of all open command prompt and navigate to Solution folder which we created in our previous blog and run the below command. This will create solution package as shown below: Now run the below command for adding the reference of the our PCF component. Now run the below command for building the and restoring solution package. Once done run the below command which will create zip of the solution which is managed solution. This can be imported in CRM. Now import the solution. Once solution is imported, open the form editor in classic mode and select the field on which you want to display this

Creating your first PCF control using Visual Code.

Image
Hello Guys, In our previous  blog   we have seen how to setup the environment for PCF control. Today we are going to see how we can create PCF control. Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends. First of all we will be creating one folder in our local drive where we will be storing our our PCF control and solutions. As you can see I have already created one folder named PCF which contains two sub folder named Controls and Solution. Now open command prompt and navigate to Control folder. Now we will be creating our first control. This control is of type text and will be used to display text. Create new folder by md command and  by using cd command navigate to this newly created folder. Now type below command for creating control. Here "TextFieldDisplay" is a namespace and "HelloPCF" is a control name. we have specified template as field which is a type of component.