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 / Pass multiple gallery ...
Power Apps
Unanswered

Pass multiple gallery items to flow

(0) ShareShare
ReportReport
Posted on by 252

Hi There

 

I got a canvas app and a flow to send a confirmation per email.

The canvas app contains two gallerys where I relate multiple values.

Now I can pass the first item of each gallery to the flow without any problem.

It then sends an email with the first items of each gallery.

 

But actually I relate more then one item per app run.

How do I make the power app formula pass all the values I need?

 

My code:

TestConfirmation.Run(
galone.Selected.one;
galtwo.Selected.two;
galthree.Selected.three
)

 

My Flow:

Dan47_0-1636383887401.png

 

Thanks for your help

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Dan47 ,

     

    You could use Json() function in canvas.

    I assume I have a table in gallery like this:

    vxiaochenmsft_0-1636618083582.png

     

    If I want to pass this table(2 items) to flow  , please see these steps:

    1\ Create flow

    vxiaochenmsft_1-1636618208507.png

    vxiaochenmsft_2-1636618218753.png

     

    2\ Add a button control in canvas and set its Onselect property to:

    Test210.Run(JSON(ShowColumns(Gallery1.AllItems,"Col1","Col2"),JSONFormat.Compact))

     

    vxiaochenmsft_3-1636618501947.png

    Best Regards,

    Wearsky

  • Dan47 Profile Picture
    252 on at

    Hi @v-xiaochen-msft 

     

    Thanks for your reply.

     

    I will test it today and give you feedback if it worked.

  • julijazas Profile Picture
    820 on at

    Hi @v-xiaochen-msft 

    I have simmilar issue and try your method but for me the output returns empty values. I am using PowerApps V2.

    In PowerAppsv2 i create a Text variable named DarboID

    In my powerapps formula for the DarboIF text part i have this: JSON(ShowColumns(Gallery2.AllItems,"new_darbuotojas"),JSONFormat.Compact)

     

    and it returns 

    jja_0-1660318181768.png

    What might be the issue?

     

  • todorovicdijana Profile Picture
    15 on at

    Hello

    I used the same Json () function to pass some columns from gallery and got an array, but when i try to apply Parse Json, i get a message - Invalid type. Expected Array but got object. I dont know how to get dynamic values from there 😞 Also, to mention, i used PowerApps V2 trigger, but without inputs, i dont know if that changes anything.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard