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 / Extract Selected Line ...
Power Apps
Answered

Extract Selected Line of Gallery to CSV

(0) ShareShare
ReportReport
Posted on by 11

Hello, Im trying to extract Data to a CSV with power automate.

 

My function is :

ExtractSCV.Run(JSON(GlobalSelectedGalleryItem;JSONFormat.IgnoreBinaryData))

 

But 'GlobalSelectedGalleryItem' is not a valid argument. This global variable is stocking MyGallery.Selected. Its selecting an entire record of my sharepoint List.

 

But in the function i have this error :

 

" JSON cannot serialize tables/objects with a nested property called 'ButtonCanvas2' of type 'Control' "

 

ButtonCanvas2 is a Button in my gallery which select my item and MyGallery.Selected come from this button.

 

What can i do ?

 

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

    Hi @Hugotazz ,

     

    This is because the selectedItems of the gallery not only contain the data source, but also contain the data of the controls. So, we need to drop these columns.

    vzhoqianmsft_0-1683888474831.png

     

     

    Or directly generate a collection containing the required columns:

    vzhoqianmsft_1-1683888605950.png

     

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard