Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Trying to wrap my head around PCF Controls .. some questions

Posted on by 254

So we're going from on prem to online very soon, and I'm trying to learn more about PCF Controls.  I've seen where Node.JS is required, yet I see many who also use React JS.  Is Node.JS baked in yet some can choose to use React or other frameworks as needed?  We will probably need to heavily depend on PCF Controls for customizations, so I really want to learn this.  Catch is I know very little about Javascript.  Most of my experience to date with CRM/D365 is interacting with it through SDK with C# through plugins and so forth.  This has mostly been in the background, but we do foresee lots of new UI changes as we go online.  Example we need a custom search where we create a custom form users fill out search criteria and a grid at the bottom will return results. It's my goal to write something like this, but I don't really know where to start.  Node JS seems to have some grids I can use, but I'm still fuzzy on where to start. 

Also I've read that PCF Controls use CDS to get data which works, but I will need to put lots of logic into what gets pulled back.  I just haven't seen many examples with PCF Controls with lots of coding -- most seems to be focused on what to display on screen.  So if I need to fetch data from multiple entities (or tables I guess they're called now) then merge them or exclude some data then add fields before presenting on the grid -- I can't find where something like this would be done on a PCF control.  

Thanks.

  • Suggested answer
    RE: Trying to wrap my head around PCF Controls .. some questions

    Hi there!

    NodeJS is an execution/compilation environment for JavaScript and is therefore used to compile your code into an actual PCF control which can be packaged into a solution.

    The PCF code will be Typescript which is basically JavaScript but with type checking for variables. Yes, you can use React for PCF components but it's not mandatory, you can stick to regular Typescript.

    Found a few articles which might be able to help you get a better understanding:

    Classic Typescript:

    dynamics-chronicles.com/.../deep-dive-pcf-powerapp-control-framework-step-step-tuto

    PCF using React:

    www.inogic.com/.../

    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans