cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TB05
Resolver I
Resolver I

Ungroup a table within a collection to a new collection

Hi,  I have a collection which is composed of a group of items from a Sharepoint list.  The items in the Sharepoint list are grouped by "Title" and the group is called "AppDATA".

Gallery item property is the group .  On checkbox the item selected is put into a collection. See image.

TB05_0-1652891904233.png

My question is how do I Ungroup this table of records so that I can update and patch to the Sharepoint list?

Each time I try to do Ungroup... I get an error that a column name already exists.

Here is my code for the ungroup:

 

ClearCollect(collectTOBEAPPROVEDUngrouped, Ungroup(collectTOBEAPPROVED,"AppDATA"));

 here is the error:

TB05_1-1652892219766.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @TB05 ,

 

This is because you already have a column named 'Approver'.

So please try this formula:

ClearCollect(collectTOBEAPPROVEDUngrouped, Ungroup(RenameColumns(collectTOBEAPPROVED,"Approver","Approver1"),"AppDATA"));

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @TB05 ,

 

This is because you already have a column named 'Approver'.

So please try this formula:

ClearCollect(collectTOBEAPPROVEDUngrouped, Ungroup(RenameColumns(collectTOBEAPPROVED,"Approver","Approver1"),"AppDATA"));

 

Best Regards,

Wearsky

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,839)