web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Export Filtered Galler...
Power Apps
Unanswered

Export Filtered Gallery to Excel with Power Automate

(0) ShareShare
ReportReport
Posted on by

Could use some help...

I have a gallery that is filtered via two dropdown menu's.  The gallery is tied to a MS SharePoint list and the gallery does not display all list items (intentionally).

 

I want to export only the filtered data items as displayed in the gallery. I have several dates that may or may not have data in the associated list and depending on the filter selections, some will not display in each gallery entry. The filter works but provided here for context. 

 

Filter('MS-Sharepoint-List',('Phase:'.Value = drpdwn_Phase.Selected.Value Or drpdwn_Phase.Selected.Value="All"),
(' Risk:'.Value = drpdwn_Risk.Selected.Value Or drpdwn_Risk.Selected.Value="All"))

 

I have a button that

1. establishes two variables and sets them to Blank()

2. Clears a collection used to save gallery items

3. Fills collection --> ClearCollect(colGalleryItems,gallery_Data.AllItems);

4. Declares a variable and assigns the collection minus dropped columns

5. Takes above variable, formats into JSON, minus binary an unsupported types, and assigns to a new variable

6. calls my Power Automate Flow and new variable as the argument

 

Flow:

HwkIFan_0-1680028065735.png

 

This works but I'm not sure if I need all of the steps...I'm stuck at the apply to each. I have been able to add select data to a pre-defined Excel file with a blank Table...but not JSON entries such as below fail. Entries with the key and followed immediately by the value work.

 
"Phase": {
      "Value": "Approved"
    },

 

That said, I'd prefer to generate a file (excel or CSV) and email to the user that clicks the button as the application will be available to any user that is authorized the the SharePoint site where the list exist.

Categories:
I have the same question (0)
  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Hi @HwkIFan

     

    Could you provide an example of the entire JSON? Just replace the values if they are sensitive.  

     

    This isn't an array you can iterate through: 

     

    "Phase": {
          "Value": "Approved"
        },

     

    BR

    HH

  • HwkIFan Profile Picture
    on at

    This is the first entry from the Parse JSON output...is this what you're looking for?

     

    [
    {
    "Data1_boolean": false,
    "Data2_textID": "201007600",
    "Data3": "5.000000000000",
    "Data4": "https:url",
    "Data5": "3.000000000000",
    "Data6": "Jon Smith",
    "Data7": "June Clever",
    "Data8": "2010-01-30",
    "Data9": "2010-01-31",
    "Data10": "2010-06-29",
    "Data11": {
    "Value": "Selection"
    },
    "Data12": {
    "Value": "Selection"
    },
    "Data13": {
    "Value": "Selection"
    },
    "Data14": "2010-06-30",
    "Data15": {
    "Value": "Selection"
    },
    "Data16": "2010-06-08",
    "State": {
    "Value": "Selection"
    },
    "Data17": "Jimmy John",
    "Data18": "Title",
    "Data19": "George Jetson"
    },

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard