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 / Issue patching from co...
Power Apps
Unanswered

Issue patching from combobox to person column in SharePoint

(0) ShareShare
ReportReport
Posted on by 576

I have a combobox in an app with default selected items set to 

If(
    Form1.Mode = FormMode.New,
    {
        DisplayName: Office365Users.UserProfile("treasmgmt@tva.gov").DisplayName,
        Claims: "i:0#.f|membership|" & Lower("treasmgmt@tva.gov"),
        Department: "",
        Email: "treasmgmt@tva.gov",
        JobTitle: "",
        Picture: ""
    },
    Parent.Default)
 
The value shows in the box in the app, but when I use the following to patch I get a Network error.
{'Approver 2': DataCardValue16.Selected},
 
What should I be using to patch the value?
Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @ahhollan - what do you have in the Items property of that ComboBox control.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ahhollan,

    Try the following expression on Update property:

    {'Approver 2': 
    {
     DisplayName: Office365Users.UserProfile(DataCardValue16.Selected.Email).DisplayName,
     Claims: "i:0#.f|membership|" & Lower(DataCardValue16.Selected.Email),
     Department: "",
     Email: DataCardValue16.Selected.Email,
     JobTitle: "",
     Picture: ""
     }
    }

    You need to check the table of the formula you set for the Items property returns, if there is Email field, then refer to Email, if it is Mail, then refer to Mail, just check the real parameter you get related to the email address.

  • ahhollan Profile Picture
    576 on at
    Choices([@'Transaction Log'].'Approver 2')
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @ahhollan - is there a specific reason you're using Patch here?

     

    Assuming your SharePoint People Picker field is single select:

     

    1. Remove the DataCard for the "Approver 2" field - (I do not know what other modifications you may have made, so let's start again).

    2. Insert the "Approver 2" field back into your Edit Form

    3. Unlock the DataCard

    4. On the DefaultSlectedItems property of your ComboBox control, enter:

     

    Coalesce(
     Parent.Default,
     {
     Claims: "i:0#.f|membership|" & "treasmgmt@tva.gov",
     Department: "",
     DisplayName: Office365Users.UserProfile("treasmgmt@tva.gov").DisplayName,
     Email: "treasmgmt@tva.gov",
     JobTitle: "",
     Picture: ""
     }
    )

     

    Do not modify anything else in the DataCard.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @ahhollan,

    Have you tried my solution?

    Does it work?

  • ahhollan Profile Picture
    576 on at

    Neither solution is populating Approver 2 column in SharePoint when the record is patched. 

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard