Export and Import controls in Power Apps - Power Apps (2024)

  • Article

Controls for exporting data to a local file and then importing that data into another app in Power Apps.

Description

If you want to create more than one app that uses the same data but not share that data outside those apps, you can export it and import it by using an Export control and an Import control. When you export data, you create a compressed file that you can copy to another machine, but you can't read it in any program other than Power Apps.

Warning

Enabling this functionality in your app may expose it to security vulnerabilities and data leakage. It is recommended to advise users to import only recognized and trusted files and only export data that is not confidential or sensitive.

Limitations

The export functionality isn't supported in web browsers.

Key properties

Data – The name of a collection that you want to export to a local file.

  • The Data property is available for an Export control but not an Import control.

OnSelect – Actions to perform when the user taps or clicks a control.

Additional properties

Align – The location of text in relation to the horizontal center of its control.

BorderColor – The color of a control's border.

BorderStyle – Whether a control's border is Solid, Dashed, Dotted, or None.

BorderThickness – The thickness of a control's border.

Color – The color of text in a control.

DisplayMode – Whether the control allows user input (Edit), only displays data (View), or is disabled (Disabled).

DisabledBorderColor – The color of a control's border if the control's DisplayMode property is set to Disabled.

DisabledColor – The color of text in a control if its DisplayMode property is set to Disabled.

DisabledFill – The background color of a control if its DisplayMode property is set to Disabled.

Fill – The background color of a control.

FocusedBorderColor – The color of a control's border when the control is focused.

FocusedBorderThickness – The thickness of a control's border when the control is focused.

Font – The name of the family of fonts in which text appears.

FontWeight – The weight of the text in a control: Bold, Semibold, Normal, or Lighter.

Height – The distance between a control's top and bottom edges.

HoverBorderColor – The color of a control's border when the user keeps the mouse pointer on that control.

HoverColor – The color of the text in a control when the user keeps the mouse pointer on it.

HoverFill – The background color of a control when the user keeps the mouse pointer on it.

Italic – Whether the text in a control is italic.

Padding – The distance between the text on an import or export button and the edges of that button.

PressedBorderColor – The color of a control's border when the user taps or clicks that control.

PressedColor – The color of text in a control when the user taps or clicks that control.

PressedFill – The background color of a control when the user taps or clicks that control.

RadiusBottomLeft – The degree to which the bottom-left corner of a control is rounded.

RadiusBottomRight – The degree to which the bottom-right corner of a control is rounded.

RadiusTopLeft – The degree to which the top-left corner of a control is rounded.

RadiusTopRight – The degree to which the top-right corner of a control is rounded.

Size – The font size of the text that appears on a control.

Strikethrough – Whether a line appears through the text that appears on a control.

TabIndex – Keyboard navigation order in relation to other controls.

Text – Text that appears on a control or that the user types into a control.

Underline – Whether a line appears under the text that appears on a control.

VerticalAlign – The location of text on a control in relation to the vertical center of that control.

Visible – Whether a control appears or is hidden.

Width – The distance between a control's left and right edges.

X – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).

Y – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).

Example

  1. Add a Button control, and set its OnSelect property to this formula:
    ClearCollect(Products, {Name:"Europa", Price:"10.99"}, {Name:"Ganymede", Price:"12.49"}, {Name:"Callisto", Price:"11.79"})
    For more details, read adding, naming, and configuring a control, ClearCollect and other functions.
  2. Press F5 and select Button control, and then press Esc.
  3. Add an Export control, and set its Data property to Products.
  4. Press F5 and select the Export control to download the file Data.zip.
  5. Select Save, then press Esc to return to the default workspace.
  6. In a new or existing app, add an Import control, name it MyData, and set its OnSelect property to this formula:
    Collect(ImportedProducts, MyData.Data)
  7. Press F5 and select MyData, then select the file that you exported, and then select Open.
  8. Press Esc and select Collections on the File menu, and confirm that the current app has the data that you exported.

Accessibility guidelines

The same guidelines for Button apply because Export and Import are just specialized buttons.

Export and Import controls in Power Apps - Power Apps (2024)

FAQs

How do I export control in Powerapps? ›

Press F5 and select Button control, and then press Esc. Add an Export control, and set its Data property to Products. Press F5 and select the Export control to download the file Data.

How do I import Data control in power apps? ›

Sign into Power Apps and select Solutions from the left navigation. If the item isn't in the side panel pane, select … More and then select the item you want. On the command bar, select Import.

How do I add controls to power apps? ›

Insert a control
  1. To get started, sign in to Power Apps and then select Cards. ...
  2. Select Create a card.
  3. In the left pane of the card designer, select Insert.
  4. In the tool pane, select a category to expand it, and then select a control from the list to place it on the card.
Jun 9, 2023

How are export controls used? ›

Purpose of Export Controls Laws and Regulations

to restrict exports of goods and technology that could contribute to the military potential of U.S. international adversaries; to prevent proliferation of weapons of mass destruction; to advance U.S. foreign policy goals; and.

What is export package in power apps? ›

Export your package from a "dev" environment, select the app and select from the shortcut menu to Export Package (preview). At this point, you can fill in the name and an optional description. The package contents are created for you. Each package resource provides a default action for Import Setup.

How do I export data from power? ›

Start in Power BI Desktop. From the upper left corner, select File > Options and Settings > Options. Under CURRENT FILE, select Report settings. Make your selection from the Export data section.

How do I export data from PowerApps to Excel? ›

You can export up to 100,000 rows of data at a time.
  1. From the left nav, select a table that you want to export data from.
  2. On the command bar, select Export to Excel.
  3. When the download is complete, navigate to the location of the downloaded file. ...
  4. Open the saved Excel file.
Feb 15, 2022

How do I export components from Powerapps? ›

You can sort of do this now.
  1. Open your source component library and then File > Save As.
  2. Save the file to your computer.
  3. Create a new app or open your exiting app on the destination tenant.
  4. File > Open > Browse.
  5. Select the file you saved in step 2.
  6. Now save and publish.

Can you copy from one power app to another? ›

In the source application I selected all objects on the screen and copy them to the clipboard. In the target application I created a new blank screen and then paste all the objects with CTRL + V. I selected the objects I need and then copy and paste them into my destination screen.

What are PowerApps controls? ›

Controls are the basic building block of PowerApps Canvas application. Controls are something that will be used to display some information to the end user or can be used to collect information from end users. All these controls will be added to the Screens of the PowerApps.

What is a control type in PowerApps? ›

Controls are key components that are used to build the basic functionality and interactivity of your app. While text controls are the most common components we'll use, the following controls will allow you to customize the input experience so that you can take other data types and other input methods into account.

What is the switch function in PowerApps? ›

The Switch function evaluates a formula and determines whether the result matches any value in a sequence that you specify. If a match is found, a corresponding value is returned. If no match is found, a default value is returned.

How do I export data from power app? ›

Sign into Power Apps, on the left navigation pane select Tables. If the item isn't in the side panel pane, select … More and then select the item you want. Select Export > Export data.

How do I export components from PowerApps? ›

You can sort of do this now.
  1. Open your source component library and then File > Save As.
  2. Save the file to your computer.
  3. Create a new app or open your exiting app on the destination tenant.
  4. File > Open > Browse.
  5. Select the file you saved in step 2.
  6. Now save and publish.

Can we export managed solution in PowerApps? ›

You can't export managed solutions or the Default Solution. To implement healthy application lifecycle management (ALM) in your organization, consider using a source control system to store and collaborate on your solutions, and automate the solution export process.

How do I export data from power app to excel? ›

You can export up to 100,000 rows of data at a time.
  1. From the left nav, select a table that you want to export data from.
  2. On the command bar, select Export to Excel.
  3. When the download is complete, navigate to the location of the downloaded file. ...
  4. Open the saved Excel file.
Feb 14, 2022

Top Articles
Latest Posts
Article information

Author: Roderick King

Last Updated:

Views: 6023

Rating: 4 / 5 (51 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.