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 / add column to collecti...
Power Apps
Answered

add column to collection along with user record

(0) ShareShare
ReportReport
Posted on by 8

HI, I am attempting to insert an additional column named "Access" into a collection when I add a user record from an Office365User search.

 

I tried this:

 

 

Concurrent(
Set(_selectedUser, ThisItem),
Reset(TextSearchBox2),
Collect(colAddUsers, ThisItem, {Access: "Edit"}))

 

 

 but this adds it as a value on its own row, like this:

FunkyStuntMunky_0-1718891475531.png

Thanks

Categories:
  • Verified answer
    rzuber Profile Picture
    552 Moderator on at
    Collect(colAddUsers, Patch(ThisItem, {Access: "Edit"}))
  • FunkyStuntMunky Profile Picture
    8 on at

    Awesome. Thanks for the quick reply. Just what I needed.

  • rzuber Profile Picture
    552 Moderator on at

    Happy to help!

     

    The reason you experienced the behavior you did is because the Collect() function allows you to collect multiple records to a data-source at once. Each argument is expected to be a record that you wish to collect. In this case, we Patch() the first record with the intended data, thereby conforming the two records into one for the collection.

     

    Collect, Clear, and ClearCollect functions - Power Platform | Microsoft Learn

    Patch function - Power Platform | Microsoft Learn

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard