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 gallery items ...
Power Apps
Unanswered

Extract gallery items in Json format based on checkbox and pass it to flow

(0) ShareShare
ReportReport
Posted on by 2

Hello Experts,

I am looking to extract multiple rows from gallery item based on the checkbox selection and would like to pass those rows data to the flow. e.g

Source Data

ID

ProductName

Subproducts

SubproductsIDs

Owner

1

A

xyz

E001

bob

2

B

abc

E002

Jane

3

A

pqr

E003

Smith

4

B

def

E004

bob

 

Gallery View -

 

Gallery1. A

              Gallery2.Xyz                              Checkbox1.value

              Gallery2.Pqr                              Checkbox1.value

Gallery2. B

              Gallery2.Abc                             Checkbox1.value

              Gallery2.def                              Checkbox1.value

Requirements - If I check Subproducts from the Gallery2 list Items and click on a button, SubproductsIDs should be passed in flow in an Array/Json format.

 

Thanks in Advance!

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @aju10141 ,

     

    I've made a test for your reference:

    1\I assume there is a collection

    ClearCollect(
     'Source Data',
     {ID:1,ProductName:"A",Subproducts:"xyz",SubPorductsIDs:"E001",Owner:"bob"},
     {ID:2,ProductName:"B",Subproducts:"abc",SubPorductsIDs:"E002",Owner:"Jane"},
     {ID:3,ProductName:"A",Subproducts:"pqr",SubPorductsIDs:"E003",Owner:"Smith"},
     {ID:4,ProductName:"B",Subproducts:"def",SubPorductsIDs:"E004",Owner:"bob"}
    )

    2\Gallery1's item

    GroupBy('Source Data',"ProductName","NewGroup")

    3\Gallery2 is inside Gallery1 and Gallery2's item

    ThisItem.NewGroup

     4\Checkbox1 is inside Gallery2 and set it's 

    OnCheck

    Collect(CollectSubPorductsIDs,{SubPorductsIDs:ThisItem.SubPorductsIDs})

    OnUncheck

    Remove(CollectSubPorductsIDs,{SubPorductsIDs:ThisItem.SubPorductsIDs})

    5\Set the button's OnSelect property to:

    FlowName.run(JSON(CollectSubPorductsIDs))

     

    Best Regards,

    Bof

     

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard