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 / Copy Person Field from...
Power Apps
Answered

Copy Person Field from a collection to person field on form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form that I am trying to load in certain data based off of pre entered data. On a button click I create a collection and want to fill in values needed but I am not sure how to load a person field from a collection to a person field on the form. Is this possible? Any help would be appreciated. 

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    AGroegelich Profile Picture
    140 on at

    Hi @MAYLIWK,

     

    I am only a newbe on PowerApss myself so I am not sure if this is the correct answer. I would try to set the Default property of the DataCardValue of the field. I presume you only want to the pre entered data when adding a new record, so you have to reckon with that.

     

     The code I would use is something like:

    If(MyForm.Mode = FormMode.New, MyCollection.Field1,Parent.Default)

     

    I hope this helps.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @AGroegelich 

     

    Thanks for the response. This was the help I needed.  Since this was happening based on a button click on the form, I created a Boolean variable that was set to true when the button was clicked and modified your code.

     

    Thanks for the help.

     

    If(boolUpdate = true, MyCollection.Field1,Parent.Default)

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @MAYLIWK ,

    Do you want to set person combo box's defaultselecteditems by using the data of a collection?

    Could you tell me the data in the collection in details?
    You could use this formula to set person combo box's defaultselecteditems:

     DefaultSelectedItems for the combo box control, you can use this expression:

    Table({
     DisplayName:User().FullName,
     Claims: "i:0#.f|membership|" & User().Email
     })

    For example,if your collection has the data of Email and full name, you could try:

    Table({
     DisplayName:First(collection).fullname,
     Claims: "i:0#.f|membership|" & First(collection).Email
     })

    About updating, you could set this person data card's Update:

    Combo box.SelectedItems

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    One other issue I had with this was that I was trying to work with the actual textbox within the card and not the card itself once I updated the cards default value everything worked. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard