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 new collection ...
Power Apps
Unanswered

Create new collection from table field in dataverse

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,
I wanted to create new collection with the same field type as the existing table in the data verse. This is just for temporary storage in the app to be used in a gallery item for user to add/delete before patching all into the dataverse. I tried using below but it created rows based on the available record in the table. 

ClearCollect(NewGO, 'Group Office Allocations')

 
I wanted the record to be new and empty. Appreciate the help for this thanks!

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Anonymous ,

    You can initialize the collection with: 

    ClearCollect(NewGO, Defaults('Group Office Allocations'));
    Clear(NewGO)

    In this way you will have an empty collection with the same structure as the datasource. 

    Hope it helps !

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard