How to Copy Power Apps Gallery Data to Another Screen
Question details
The user wants to transfer selected data from a Power Apps gallery to a different screen or pop-up when clicking a navigation icon.

- Product
- Microsoft Power Apps
- Device & OS
- not provided
- Scenario
- Building or editing an application in Power Apps where user selection in a gallery needs to populate data on a subsequent screen.
- Observed behavior
- The selected gallery item's data needs to be passed accurately to the next screen or a pop-up window so users can view or edit the specific record.
Ensure you have edit permissions for your Power App and that your gallery is successfully connected to a working data source.
Use the Navigate Function with Context Variables
Pass the selected item's data to the new screen by defining a context variable within the Navigate function.
Passing a context variable during navigation is the most reliable way to transfer a specific record's data to another screen, as it captures the exact item the user selected.
Open your Power App in edit mode, navigate to your gallery, and select the 'Next' arrow icon in the first row of the gallery.
In the formula bar for the OnSelect property, enter the Navigate function. For example: Navigate(TargetScreen, ScreenTransition.None, {SelectedItem: ThisItem}).
On your target screen, insert a label or text input and set its Text property to SelectedItem.FieldName (replace 'FieldName' with your actual column name).

Use Global Variables for Pop-up Windows
If you are showing a pop-up on the same screen instead of navigating away, use a global variable to store the selection and control the pop-up visibility.
Enhance Your Productivity with WPS Office
While Power Apps is an excellent tool for custom application building, managing the underlying datasets often requires robust spreadsheet software. WPS Office offers a free, lightweight, and highly compatible alternative for viewing, editing, and analyzing your exported app data.

Frequently Asked Questions
Why is my target screen not showing the selected gallery data?
This usually happens if the context variable name passed in the Navigate function doesn't perfectly match the variable name used on the target screen, or if the target label is referencing an incorrect column name from your data source.
What is the difference between using Gallery.Selected and passing a variable?
Using Gallery.Selected is simpler and automatically updates if the gallery selection changes. Passing a variable captures a static snapshot of the record at the exact moment the button was clicked, which is safer if the gallery data might refresh in the background.
Can I pass multiple records from a gallery to another screen?
Yes, but you will need to collect the selected items into a Collection using the Collect() function (often paired with a checkbox in the gallery) rather than passing a single record via a context variable.




