File Picker in PowerApps Component Framework

InogicDyn365CE2 years ago16 Views


Introduction:

There are many methods in PowerApps Component Framework (PCF) that allows you to create more productive and less dependent components. In PCF, you may have created many components to pick something like Color, Date etc. from a third party UI framework.

However, what if I tell you that you can now pick files in your PCF component without using any third party component.

Yes, you heard it right! PCF has come up with an in-built method for picking up files. The method is named as pickFile() and on trigger of this method; it opens a dialog box to select the files that you want to upload.

Syntax:

context.device.pickFile(options)

Parameter:

PowerApps Component Framework

The options have the following properties.

PowerApps Component Framework

Return Value: Promise<FileObject[]>

It returns an array of file objects, which includes the data of the file.

To use this method, you will need to add this in the <feature-usage> tag as <uses-feature> in the ControlManifest.Input.xml file.

PowerApps Component Framework

Now, let us understand the working of this method with…



Source link

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...