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 Row to Sharepoin...
Power Apps
Unanswered

Patch Row to Sharepoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

in my app I have a form that looks like this:

 

- A : Choice field

- B: Choice field

- C: Multiple Row field

 

Now I would like to add a new row to a Sharepoint list based on the entered information as well as the current user typing in the information.

 

So currently I have a button with the following code, but it does not seem to work:

 

 

Patch(Name_of_SP_List;

Defaults(Name_of_SP_List);

{A: A_DataCard1;

Employee: {
DisplayName: User().DisplayName;
Email: User().Email;
Picture: User().Picture};

B: B_DataCard1;

C: C_DataCard1;}
)

 

 Thank you in advance,

Lina

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey!!

     

    For 

    TextBox you should write this:

    TextInputName.Text

     

    Like this:

    Patch(Name_of_SP_List;
    Defaults(Name_of_SP_List);
    {A: A_DataCard1Value.Text}
    )

     

    For combobox/dropdow:

    Patch(Name_of_SP_List;
    Defaults(Name_of_SP_List);
    {A: A_DataCard1.Selected.Value}
    )

     

    For Person:

     

    Patch(Name_of_SP_List;
    Defaults(Name_of_SP_List);
    {
    Employee: {
     DisplayName: Office365Users.UserProfile(User().Email).DisplayName;
     Claims: "i:0#.f|membership|" & Lower(User8).Email);
     UserPrincipalName: Office365Users.UserProfile(User().Email).UserPrincipalName}
    )

     

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