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 / Create and pass two Co...
Power Apps
Unanswered

Create and pass two Collections to Flow

(0) ShareShare
ReportReport
Posted on by 47

I'm attempting to pass two Collections to Flow on a button press. I'm collecting People (using the OOTB People screen) and Office 365 Groups. On the first screen, the user searches for one or more people, and on the second screen, the user selects one or more Groups on a List screen.

 

In the App.OnStart, I create the following Collection:

 

Collect(MyGroups, Office365Groups.ListOwnedGroupsV2().value)

 

I have two issues:

 

First is for the List screen -- how can I collect the Groups that have checkboxes next to their entry?

 

Second is, how do I pass both Collections (MyPeople and a new Collection based on selected Groups) to Flow? The idea here is to do a foreach on the new selected Groups collection and pass the MyPeople collection to each Group.

Categories:
I have the same question (0)
  • Dawidvh Profile Picture
    1,346 on at

    Hi @trevorseward 

     

    Not exactly sure what you scenario is, but it sounds like a ComboBox could be used to show and select the groups. The SelectedItems property should then give you what you need for the collection.

    ClearCollect(colSelectedGroups,ComboBox1.SelectedItems)

     

    You could send the collections to Flow using the new JSON function and then parse the data in Flow, ready for action.

     

    Let me know if you don't come right.

     

    Dawid van Heerden
    Follow on Twitter: @davestechtips
    Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
    **If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions. AND we get points for it 😉

  • trevorseward Profile Picture
    47 on at

    Looking at a combobox, that isn't a good UI experience when many Groups need to be selected -- is there a way to collect the items the checkbox is associated with?

     

    For example, how would I collect just Group 1 and Group 2 in this image:

     

    Untitled.png   

     

    After figuring the above out, it sounds like I would either create a new collection, or clear my existing MyGroups collection and using the JSON function (will have to look into that, too but thank you for mentioning it), pass the results to Flow for parsing.

     

    This doesn't solve the Search/Sort question, but those are nice-to-have rather than required-to-have.

  • Dawidvh Profile Picture
    1,346 on at

    ComboBox is designed for large lists, as you can search directly in the ComboBox as well.

     

    The check box isn't going to help much as this is not a mutli select control. You could add a gallery and as soon as someone clicks on the group, then collect that group to a collection. From the below it feels like this would be the best option here.

  • trevorseward Profile Picture
    47 on at

    OK, that will work. But it doesn't answer how do I get two collections to Flow.

  • Dawidvh Profile Picture
    1,346 on at

    Hi @trevorseward 

    Please see below quick video to demonstate how to upload data to Flow from PowerApps Collection.

    https://youtu.be/HLdOO4JPZ2I

     

    Let me know if you don't come right.

     

    Dawid van Heerden
    Follow on Twitter: @davestechtips
    Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
    **If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard