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

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard