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 / Update Person field in...
Power Apps
Unanswered

Update Person field in Sharepoint list

(0) ShareShare
ReportReport
Posted on by 138

Hi 

 

I'm creating a holiday request tool and I'm trying to create an option for managers to set a delegate approver for requests. 

 

I have 2 Comboboxes that get the person from the "Approver" and "Delegated Approver" columns in the Sharepoint using this: 

 

ComboBox1 Items: 
Distinct('Holiday Request Tool'.Approver, Approver.DisplayName)


ComboBox2 Items: 
Distinct('Holiday Request Tool'.'Delegated Approver', 'Delegated Approver'.DisplayName)


I would like to add code to a button that will find all entries in the Sharepoint that match the Approver in ComboBox1 and updates the Delegated Approver field to the person in ComboBox2. 

 

 

Thanks in advance! 

 

 

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at

    ComboBox1 Items: 
    Distinct('Holiday Request Tool'.Approver, Approver.DisplayName)


    ComboBox2 Items: 
    Distinct('Holiday Request Tool'.'Delegated Approver', 'Delegated Approver'.DisplayName)

     

    This formula are working?

  • stephenjcarr Profile Picture
    138 on at

    Hi @developerAJ  Yes these formulas are working. How do i add a button that will find all entries in the Sharepoint that match the Approver in ComboBox1 and update the Delegated Approver SP field to the person selected in ComboBox2?

     

    Thanks 

     

    Thanks

  • developerAJ Profile Picture
    4,763 on at

    ComboBox1 Items: 
    Distinct('Holiday Request Tool', Approver.DisplayName)


    ComboBox2 Items: 
    Distinct(Filter( 'Holiday Request Tool',Approver.DisplayName=ComboBox1.Selected.Value), 'Delegated Approver'.DisplayName)

    Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    You can connect with me on LinkedIn

  • stephenjcarr Profile Picture
    138 on at

    @developerAJ What do I add to the button please? 

  • stephenjcarr Profile Picture
    138 on at

    I need a button that will update the Delegated Approvers field in the sharepoint if ComboBox2 is changed to different person

  • developerAJ Profile Picture
    4,763 on at

    if you are using form submitform(formname) will do

  • stephenjcarr Profile Picture
    138 on at

    These comboboxes arent on a form. I'm not looking to update a single Sharepoint entry. 

    I need code that will find all sharepoint entries where the Person in the Approver column matches the Person in ComboBox1, and update all of these entries "Delegated Approver" column with the Person selected in ComboBox2. 

    For example. If CombBox1 has "John Smith" selected and ComboBox2 has "Jane Smith" selected, find all entries on the sharepoint where "John Smith" is listed in the Approver column and add "Jane Smith" to the Delegated approvers column for those entries. 

    Thanks! 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard