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 / Ungroup inside collection
Power Apps
Answered

Ungroup inside collection

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

 

I'm collecting data into other collection by using below code.

Here my issue is when i run the below code "recId" returning table data but i want to ungroup it while collecting data through the below code. can someone help me on this.

 

ClearCollect(
collection1,
ForAll(
Sequence(
CountRows(collection2),
varnum,
1
) As A,
{
ID1: varnum & "" & (A[@Value]),
ID2: A[@Value],
recId: collection2[recordid]
}
)
);

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

    Hi @BHR ,

     

    You could try:

    ClearCollect(
     collection1,
     Ungroup( ForAll(
     Sequence(CountRows(collection2),varnum,1) As A,
     {
     ID1: varnum & " " & (A[@Value]),
     ID2: A[@Value],
     recId:collection2[recordid]
     }
     ),"recId")
    );
    

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard