web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Patch function t...
Power Apps
Answered

Using Patch function to update an existing SharePoint list item using a PowerApps form

(0) ShareShare
ReportReport
Posted on by 37
I am building a helpdesk system using SharePoint lists and a PowerApps form.  The form has 2 screens the first screen is to submit a new request to the list and this works correctly.  The second screen is for editing or updating existing items in the list.  The screen loads correctly but I cannot get the form to update the existing item. I am using the below code.  The status field is a choice (dropdown) field and default value is "New" when I open the edit form and update to a new value and click save it wipes the value out of the field in Sharepoint so the status field on that particular item is blank.  Any help greatly appreciated
 
Patch(
    'Tickets',
    SharePointIntegration.Selected,
 
    {            
        Status: SharePointForm1.Updates.Status,
        Priority: SharePointForm1.Updates.Priority
    }
 
);
RequestHide();
I have the same question (0)
  • Verified answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    1.   Verify the Status dropdown in your form. Set the Default property of the item to ThisItem.Status.
    2.   Set the Update property of the Status dropdown to Dropdown_Status.Selected.Value
    3. Use the following code for your save action
    Patch(
    'Tickets',
    SharePointIntegration.Selected,
    {
    Status: Dropdown_Status.Selected.Value,
    Priority: Dropdown_Priority.Selected.Value
    }
    );
    RequestHide();
    4. Replace Dropdown_Status and Dropdown_Priority with the actual names of your dropdown controls.
    5. Save and publish your app. Test the form to ensure changes are saved correctly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard