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 / Edit SP item instead o...
Power Apps
Answered

Edit SP item instead of creating a new one

(0) ShareShare
ReportReport
Posted on by 108

Hi community,

 

I am building an app with 2 forms who update 2 different sharepoint lists with 1 button.

 

The code i have in the submitbutton = OnSelect: Patch(Demo01Dashboard;Defaults(Demo01Dashboard); Form7.Updates);;Patch('Demo0.1';Defaults('Demo0.1');Form6.Updates)

 

In the forms i have on Item: LookUp(Demo01Dashboard;Klantnaam=Dropdown4.Selected.Klantnaam)

To show the current selected item from the dropdown menu.

 

I want the left form to create a new item (makes a new item with hours worked on a project on a current day)

I want the right form to update the excisting item in the SP list. The form is set to "Edit" in defaultmode, but it creates a new item on submitting.

 

Thanks for the help! 

Rogermiddleton_0-1598469262933.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Rogermiddleton ,

    If you put the button inside a custom card, you can do this

    Patch(
     Demo01Dashboard;
     ThisItem;
     Form7.Updates
    );;

     

    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.

  • Rogermiddleton Profile Picture
    108 on at

    Hi @WarrenBelz ,

     

    That works perfect. Thank you for the solution!

     

    Greetings,

    Roger

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard