web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Patch person/group column with dropdown

(0) ShareShare
ReportReport
Posted on by 102

Hi,

 

I have admin list1 of my app, the column type there is Person or Group. List size is max 15 people.

Then I used Distinct(AdminList, Admins) for my dropdown menu items.

 

I have another list2, where I have my document for review by the admins.

I wanted to add an "Assigned to" column, to track to whom which document is assigned.

I have a gallery2, where list2 is pulled to track the workload on admins.

 

I am struggling with Patch function to edit List2 Person type column with the selected person from dropwdown menu (which is distinct people from List1, also Person type column) 

 

Can someone help with that?

Thanks

I have the same question (0)
  • Ninja_365 Profile Picture
    99 on at
    Re: Patch person/group column with dropdown

    hi @Dulat ,

    you can try this 

    Patch(
     List2, 
     SelectedItemInGallery2, 
     {'Assigned to': DropdownAdmins.Selected}
    )

    If you find this solution helpful, please feel free to accept it. 😊

  • Dulat Profile Picture
    102 on at
    Re: Patch person/group column with dropdown

    Hi @Ninja_365 

    I did exactly same thing, but it didn't worked :(.

     

    Patch(mesra_footer,Gallery1.Selected, {Assigned:Dropdown1.Selected})
  • Ninja_365 Profile Picture
    99 on at
    Re: Patch person/group column with dropdown

    Hi @Dulat ,

    try this

    Patch(
     List2, 
     SelectedItemInGallery2, 
     {'Assigned to': LookUp(Office365Users.SearchUser({searchTerm: DropdownAdmins.Selected.Email}), Email = DropdownAdmins.Selected.Email)}
    )

    If this solution helps you, feel free to accept it. 😊

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Patch person/group column with dropdown

    HI @Dulat,

    I am confused that is this Distinct() function working if Admins is a Person column?

     

    If Admins is a Person type column, you should modify your Distinct() function as below:

    Distinct(AdminList, Admins.DisplayName)

    vqiaqimsft_0-1699847186309.png

    Patch(
     list2,
     Defaults(list2),
     {
     Title: "6",
     Responsible: {
     Email: Dropdown4.Selected.Email,
     DisplayName: Dropdown4.Selected.DisplayName,
     Claims: Dropdown4.Selected.Email,
     Department: Dropdown4.Selected.Department,
     JobTitle: Dropdown4.Selected.JobTitle,
     Picture: Dropdown4.Selected.Picture
     }
     }
    )

    vqiaqimsft_1-1699847429695.png

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard