Creating a Virtual PCF React Control with Fluent UI v8

In a previous post, we looked at how to create a sample PCF control. In this post, we will look at creating a React PCF control. The current templates for PCF Controls use Fluent UI v8. For v8 documentation, see https://developer.microsoft.com/en-us/fluentui#/controls/web . v8 controls use @fluentui/react. The latest version is Fluent UI v9. We can use v9 controls in our PCF controls, but it won’t use the out of the box template. … Continue reading Creating a Virtual PCF React Control with Fluent UI v8

Building a PCF Control that calls Context WebApi

Power Apps Component Framework, or PCF Controls, have capabilities to call WebApi operations. In this post, we will look at how to build a PCF control that calls the Context WebApi. In a previous post, we built a control that called the navigation features in a PCF control, as well as user settings. Let’s use that as a base to run some WebApi code. In looking at the context.webAPI, we … Continue reading Building a PCF Control that calls Context WebApi

Using Context Navigation and User Settings in PCF Controls

In this post, we will look at how to use context in PCF Controls. The context provides us with many features such as being able to call Power Apps and Dynamics 365 native functionality that we may normally access through JavaScript and the API. Being able to do this from within a PCF control is very useful for building our controls. First, let’s create a new PCF control called SampleXrmControl, … Continue reading Using Context Navigation and User Settings in PCF Controls

Creating a Textbox PCF Control

In our previous post, we created a simple PCF control that displayed an HTML label. In this post, we will look at how to make the control a text box. A very basic example of adding an HTML DOM input textbox can be found here. The code we will add to the init function in our index.ts file: var x = document.createElement(“INPUT”); x.setAttribute(“type”, “text”); x.setAttribute(“value”, “Hello World!”); container.appendChild(x); On saving, … Continue reading Creating a Textbox PCF Control

Building and Deploying your First PCF Control (without React)

PCF controls are custom built Power Apps Component Framework controls built by developers to extend the functionality of Microsoft Power Apps. In this post we will look at building these controls from scratch. First, let’s give a high level overview of PCF controls. Overview One of the first questions that comes us is which frameworks can you use to build these controls. Currently there are 2 templates of controls, Standard … Continue reading Building and Deploying your First PCF Control (without React)

PCF Create, Build, Deploy Cheat Sheet

The following are steps to create, build, and deploy PCF controls. You will need to install the Power Platform CLI and have msbuild (from Visual Studio). Aliases are used where possible. Usage: pac pcf init [–namespace] [–name] [–template] [–framework] [–outputDirectory] [–run-npm-install] –namespace The namespace for the component. (alias: -ns) –name The name for the component. (alias: -n) –template Choose a template for the component. (alias: -t) Values: field, dataset –framework … Continue reading PCF Create, Build, Deploy Cheat Sheet

Setting Default Publisher Prefix using Preferred Solutions in Power Apps

Microsoft has released new preview functionality to help making building Power Apps easier. In fact, this simple change will help a lot of developers from making a fairly common mistake, which is creating objects outside of a solution and thereby having these objects named with the publisher prefix of new_. No more! In this post, we will look at Preferred Solutions, which allow us to define a default solution and … Continue reading Setting Default Publisher Prefix using Preferred Solutions in Power Apps

Embedding a Dataverse Power Automate Flow Inside Power BI

Power Automate Flows can now be embedded inside Power BI reports, which opens many possibilities for performing functions within a Power BI report. In this post, we will look at this cool new feature. In a previous post, we showed how to embed a canvas app inside Power BI. Let’s take a look at embedding a flow. Note this functionality will reach General Availability in April 2024 and is part … Continue reading Embedding a Dataverse Power Automate Flow Inside Power BI

Troubleshooting Power Platform Tools pac cli exception

Sometimes you may run into issues when running the Power Platform CLI, or pac cli. As an example, trying a simple pac auth create stopped working for me. The error produced was: Sorry, the app encountered a non recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: 10ff1f33-efd2-42f8-b5bf-701af0bd5972, Exception Type: System.ComponentModel.Win32Exception … Continue reading Troubleshooting Power Platform Tools pac cli exception

Embedding a Dataverse Canvas App Inside Power BI Reports

Power BI has a visualization that allows us to embed Power Apps Canvas Apps inside of Power BI reports, which can be useful if you want to liven up your Power BI reports! In this post we will create a Power BI report that displays related contact information from a selected account from the Dataverse. This follows on from a similar concept where we embedded a Canvas App inside a … Continue reading Embedding a Dataverse Canvas App Inside Power BI Reports