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 / Selecting some items f...
Power Apps
Answered

Selecting some items from the gallery to generate JSON

(0) ShareShare
ReportReport
Posted on by 49

Hi, I'm creating a flow to generate an Excel file. Following a tutorial I was able to generate the JSON file of all the items in the gallery.

GenerateExcel.Run(
JSON(
Galeria_incidencias. AllItems;
JSONFormat.IgnoreUnsupportedTypes & JSONFormat.IgnoreBinaryData
)
)
But I need only a few of them to arrive. How can I select the ones I'm interested in?
Let's see if anyone can help me

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @EvaSantos ,

     

    If you want to filter rows, please try this

    GenerateExcel.Run(
    JSON(
    Filter( Galeria_incidencias. AllItems;<column>=Value );
    JSONFormat.IgnoreUnsupportedTypes & JSONFormat.IgnoreBinaryData
    )
    )

    If you want to select columns, please try this

    GenerateExcel.Run(
    JSON(
    ShowColumns( Galeria_incidencias. AllItems;"First Column";"Second Column");
    JSONFormat.IgnoreUnsupportedTypes & JSONFormat.IgnoreBinaryData
    )
    )

     

    Best Regards,

    Wearsky

  • EvaSantos Profile Picture
    49 on at

    Thanks!

  • EvaSantos Profile Picture
    49 on at

    Well, I already have the columns I need, but is there a way to sort them in the order they should be inserted into the csv file?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard