cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Autopopulate Person from dropdown

I am trying to autopopulate a person field based on the selection in a dropdown.  The dropdown is pulling from another list, which I am getting a few fields, one of them is a person field.  I can get the value to populate in my person fields using this formula:

If(
FormNewPMR.Mode=New,
{
Claims: "i:0#.f|membership|" & Lower(LookUp(Office365Users.SearchUser(),DisplayName = ComboBoxProgName.Selected.'Account Manager'.DisplayName,Mail)),
DisplayName: DataCardValue63.Text,
Email: LookUp(Office365Users.SearchUser(),DisplayName = ComboBoxProgName.Selected.'Account Manager'.Email,Mail),
Department:"",
JobTitle:"",
Picture:""
},

Parent.Default)

 

But am getting Bad Gateway error.

 

UPDATE:  I figured it out, it was so simple.  I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.

1 ACCEPTED SOLUTION

Accepted Solutions
Helper V
Helper V

UPDATE:  I figured it out, it was so simple.  I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.

View solution in original post

1 REPLY 1
Helper V
Helper V

UPDATE:  I figured it out, it was so simple.  I used the same formula that I used on the other fields from the dropdown, but instead of Default items, I needed to use DefaultSelectedItems.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (64,464)