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 / ForAll function does n...
Power Apps
Answered

ForAll function does not work as I expected

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everybody!
I'm new using PowerApps.


I have problems dealing with the ForAll function, here's the scenario:

I've got a label which contains some Office 365 Group IDs, separated by semicolon:

fmarasco_0-1656113162858.png

 

Then, I've got a button with this function:

 

 

 

 

Collect(ABM;Split(lbl_AprobadoresGuardados_ID;";")).Result

 

 

 


This function creates a collection named ABM which contains the mentioned IDs:

fmarasco_1-1656113220265.png

I need to obtain the group members from all ID groups above, so, i'm trying to use the ForAll function. I'm trying this:

 

 

 

 

ForAll(ABM.Result;Collect(ABM_2;GruposdeOffice365.ListGroupMembers(Result)))

 

 

 


The problem I have is that formula returns the values separated in different tables:

fmarasco_2-1656113252534.png

 

 

But I need all the values in one table.... how can I achieve that?

 

 

Thanks in advance!!!

 

Have a great day!

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @Anonymous ,

    Like this - I have assumed here your posted formula produces valid results

    ClearCollect(
     ABM_2;
     Ungroup(
     ForAll(
     ABM.Result;
     GruposdeOffice365.ListGroupMembers(Result)
     );
     "Value"
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard