Questions tagged [powerapps-component-framework]

Use this tag for questions related to Microsoft PowerApps Component Framework (PCF) earlier called as Custom Control Framework, for developing reusable controls for both Model-driven and Canvas PowerApps.

  • Replace a field that displays a numeric text value with a dial or slider code component.
  • Transform a list into an entirely different visual experience bound to the data set like a Calendar or Map.

Official documentation

24 questions
2
votes
0 answers

Make a new ComponentFramework.PropertyTypes.Dataset using JSON from Web API call

I'm trying to make a PCF that shows data from an API call. The API returns a JSON. Is there a way to convert this JSON to a ComponentFramework.PropertyTypes.Dataset? The Dataset has features like paging for example.
Thuy
  • 1,493
  • 1
  • 11
  • 11
2
votes
0 answers

npm install node-geocoder issue while running npm run build in type script + PCF (Powerapps Component Framework)

I have created a PCF (Powerapps Component Framework) in which I am using the GEOCODE feature. I have installed the required components using "npm install node-geocoder" and have added the below code : let nodeGeocoder = require('node-geocoder'); …
2
votes
2 answers

Apply a sort to a dataset in a PowerApps component (PCF)

I’m trying to create a new dataset type Powerapps Component (PCF). For the moment I am using it to display a view of the records that are available in an entity in Microsoft Dynamics CRM. I wish to make the view sort itself when I click on the grid…
Francis Gagnon
  • 3,545
  • 1
  • 16
  • 25
2
votes
1 answer

Calling Dynamics CRM Rest API from PCF component, Embedding in Model-Driven App

We are working on a Canvas app that allows user to perform bulk operations such as assigning roles to users, manage privileges, etc. For this, we created a custom connector at the PowerApp that calls the Dynamics CRM Rest API to perform various…
2
votes
1 answer

React rendering new view with filtered Data in Model Driven PowerApps

Currently I am implementing a custom list in a model driven app. I noticed that while filtering the data the init method as well as the updateView method is called, furthermore the updateView method is called 3 times. However, the new view is not…
1
vote
0 answers

How to set maximum available width for Component Gallery in PowerApps?

I have created a Component Library with Gallery Control for Horizontal Menu. I want that when screen resolution changed, the horizonal menu use the maximum available width. When I use that Component, everything is working fine except the width of…
1
vote
0 answers

Error in installing pcf-scripts using npm i

There is an error when I tried to upgrade my installed pcf-scripts by invoking npm i pcf-scripts@1.7.2. My current pcf-scripts version is 1.5.5. The error is npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted…
Dens
  • 11
  • 1
1
vote
1 answer

PCF being too heavy

I'm working with custom components from component framework and whenever I try to upload the file into CRM it says it's too heavy. I checked and it takes 7MB which is crazy since it shouldn't. I'm using FluentUI and I checked my imports to see if…
1
vote
1 answer

PowerApps - How do I create a folder picker

I'm building a canvas PowerApp / Component using React and FluentUI (office-fabric-ui). (if that limits the ways to solve this feel free to ignore the React part) Using context.device.pickFile() (documentation) I can trigger a file picker dialog. I…
1
vote
1 answer

Is there a way to auto load data to a dataset in PowerApps Component Framework (PCF)?

I am using the following DataSet Grid example: https://learn.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/data-set-grid-control The example allows me to upload a DataSet and then shows it into a grid. I am trying to…
1
vote
1 answer

How to Fix Azure Maps PCF Component Drawing Tools Offset

I have an Azure Maps PCF Component imported as a solution into a PowerApp. If a pin is dropped in the upper-left corner, it falls directly under the cursor (like it should). As I drop pins down and to the right, the pins fall increasingly further…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
1 answer

PowerApps TimeUnit.XXX no longer recognized since Update?

Everything was working fine until the update of components 1-2 days ago. Without any change to my specific code block. TimeUnit.anything is no longer recognized. I can still use e.g. TimeUnit.Hours in the canvas app area, the problem only occures in…
0
votes
0 answers

Unable to create a dynamic dropdown in property panel in pcf template dataset

I want to fetch data from an array and show it in property panel as a drop down. Used Of-type enum, but unable to add dynamic value in it. Tried using JS as well by targeting the class name of the drop down created by property of-type enum and…
0
votes
0 answers

Several instances of Component - Behavior property

I created a component composed of a text input and a text label. The use of this component is to serve as input and also show an error (text label). The error can be anything such as blank text in the input or a duplicate value when compared with a…
0
votes
0 answers

Chart.js added in PowerApps PCF component is not showing the tooltip properly when hover over bar chart

We have a PowerApps which have component created using PCF. It is using Chart.j and when hovering over the bar chart, the tool tip is showing wrong data. For instance, in the screenshot, I hovered over 3/Apr/2023 but in tool tip data is showing for…
1
2