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 / 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:
I have the same question (0)
  • Verified answer
    rzuber Profile Picture
    545 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
    545 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard