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 / Adding SP List Columns...
Power Apps
Suggested Answer

Adding SP List Columns Post Power Apps Form Creation Now Not Saving to List

(0) ShareShare
ReportReport
Posted on by 4

Hello,

I've created a SharePoint List that connects with a Power App form, which successfully loads and saves data to the list. However, after adding new columns to the SharePoint List, while the columns appear correctly in the Power App form, the form now fails to save to the list. I’m currently using a Patch function based on a YouTube tutorial recommendation as it’s supposed to work well for updating existing records.

Any help would be greatly appreciated!

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at
    Can you please post your Patch code (in text)
  • Kellboy2243 Profile Picture
    51 on at
    Share patch code
  • DH-25091242-0 Profile Picture
    4 on at
    Could the issue be that I added about 30 new columns? Noticed a comment on a thread about SP and Power Apps needing time to sync up
     
    Here's my Patch
     
        // Check if the item exists
        If(
            !IsBlank(LookUp('SP List, 'Title Field' = DataCardValue4.Text)),
           
            // Update the existing item
            Patch(
                'SP List,
                LookUp('SP List, 'Title Field' = DataCardValue4.Text), // Find the item with the matching Title Field
                 {
                 
                 },
                FORM.Updates // Update with form data
            );
            Notify("Completed Code Run", NotificationType.Success), // Notify on update success
           
            // Item does not exist, so create a new one
            Patch(
                'SP List,
                Defaults('SP List), // Create a new item
                {
                    'Title Field': DataCardValue4.Text
                },
                FORM.Updates // Set with form data
            );
            Notify("Completed Code Run", NotificationType.Success) // Notify on create success
        );
  • Kellboy2243 Profile Picture
    51 on at
    Hi
     
    You do not need patch if you are using a form. Do you get an error when you use the SubmitForm function? If you do please share error code. Also make sure to set all form datacard required property to false 
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at
    Firstly try this (which will work for both new and existing records)
    With(
       {
          _ID: 
          LookUp(
             'SP List, 
             'Title Field' = DataCardValue4.Text
          ).ID
       }, 
       Patch(
          'SP List,
          {ID: _ID},
          FORM.Updates 
       );
       Notify(
          "Completed Code Run", 
          NotificationType.Success
       )
    )
    however have you checked you are actually finding the correct record - put this on a Label Text and see if it displays the field value you are looking for.
    LookUp(
       'SP List, 
       'Title Field' = DataCardValue4.Text,
       'Title Field'
    )
     ​​​​​​​Also I assume you added the new fields to the form ?

    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    Here are the steps:
    • Check required fields in SharePoint.
    • Refresh the data source in Power Apps.
    • Update your Patch function to include all new fields.
      • Patch(
            YourSharePointList,
            LookUp(YourSharePointList, ID = varSelectedRecordID),
            {
                Title: DataCardValueTitle.Text,
                NewColumn1: DataCardValueNewColumn1.Text,
                NewColumn2: DataCardValueNewColumn2.Selected.Value,
                ...
            }
        )
         
    • Clear and reset the form if it still fails.
    let me know how it goes! 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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard