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 / Patch Person or Group ...
Power Apps
Unanswered

Patch Person or Group column in SharePoint and get data from a Combo Box

(0) ShareShare
ReportReport
Posted on by 11

I have an “Assigned To”  person or group field in my SharePoint List. I am using a Combo Box for the Assign To column in power apps (I will only have 1 person in this field)

  1. How do I get the drop down to display the person name for people in my organization.
  2. How do I get the patch to update the fields for the current item
  3. How do I get patch to Create a new item when necessary.

Patch will Save but creates a new item and I need to get the Assigned To working as well. Any assistance is very much appreciated.

 

SP List:

lsanchez29_0-1701807848589.png

 

 

Assign To in Power App:

Items = Choices('IT Hardware'.'Assigned To')

DisplayFields =  ["DisplayName"]

SearchFields = ["DisplayName"]

 

lsanchez29_1-1701807848591.png Save button

 

Patch:

Patch(

    'IT Hardware',

    Defaults('IT Hardware'),

    {

        Asset: DataCardValue9.Text,

        'Assigned Name': DataCardValue10.Text,

        'Asset ID': DataCardValue11.Text,

        Manufacturer: DataCardValue15.Text,

        'Model/Version': DataCardValue16.Text,

        'Bar Code': DataCardValue17.Text,

        'Asset Status': DrpAssetStatus.Selected,

        'Asset Type': DrpAssetType.Selected

    }

);

Notify("Update successful", NotificationType.Success)

Categories:
  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    Hi @lsanchez29 ,

    Assuming DataCardValue10 is the Combo Box mentioned and 'Assigned Name' is a Text field, you should need

    'Assigned Name': DataCardValue10.Selected.DisplayName

     

    Please click Accept as solution 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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Lynette Sanchez Profile Picture
    11 on at

    Thank you 'Assigned Name': DataCardValue10.Text is a Single line of text in SHarePoint. What I am trying to understand is how to get a dropdown or combo box for Assigned To which is a Person or Group in SharePoint. I need assistance with the combo box and how to Patch to SharePoint (Update current item and ability to create a new item. Data Source SharePoint and Office365 Users

  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    @lsanchez29 ,

    Can you please list the field names and types together with the control names and types (and Items if drop downs) of all the elements you want to patch from and to.

  • Lynette Sanchez Profile Picture
    11 on at

    Hello, I think I've gathered the information you were requesting. Please note that I have changed the names to reflect the proper naming convention for the App. I've also include an example of the app for reference, thank you for taking the time to assist. 

    SharePoint Display Name SharePoint Internal NameTypePower App 
    Asset TitleSingle line of textTxt_Asset 
    Assing Name Asset_x0020_Name Single line of textTxt_DataAssgndName 
    Asset Id Asset_x0020_ID Single line of textTxt_AssetId 
    Asset Status Asset_x0020_Status ChoiceDrp_AssetStatusDrop Down -Choices([@'IT Hardware'].'Asset Status')
    Manufacturer Manufacturer Single line of textTxt_Manufacturer 
    ModelModel_x002f_Version Single line of textTxt_Model 
    Asset Type Asset_x0020_Type ChoiceDrp_AssetTypeDrop Down - Choices([@'IT Hardware'].'Asset Type')
    Bar code BarCode Single line of textBar_ReaderBarcodeReader1
    Assign To Assigned_x0020_To Person or GroupCmb_AssignToOffice365Users.SearchUser({searchTerm:Cmb_AssignTo.SearchText}.DisplayName
    App.JPG
  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    @lsanchez29 ,

    Based on the values you have posted

    Patch(
     'IT Hardware',
     Defaults('IT Hardware'),
     {
     Asset: Txt_Asset.Text,
     'Assigned To': 
     {
     Claims: "i:0#.f|membership|" & Lower(Cmb_AssignTo.Se3lected.Mail),
     Department: "",
     DisplayName: Cmb_AssignTo.Selected.DisplayName,
     Email: Cmb_AssignTo.Se3lected.Mail,
     JobTitle: "",
     Picture: ""
     },
     DataCardValue10.Text,
     'Asset ID': Txt_AssetId.Text,
     Manufacturer: Txt_Manufacturer.Text,
     'Model/Version': Txt_Model.Text,
     'Bar Code': First(BarcodeReader1.Barcodes).Value,
     'Asset Status': DrpAssetStatus.Selected,
     'Asset Type': DrpAssetType.Selected
     }
    );
    Notify(
     "Update successful", 
     NotificationType.Success
    )

     

    Please click Accept as solution 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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard