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 / override sharepoint li...
Power Apps
Answered

override sharepoint list item in canvas app

(0) ShareShare
ReportReport
Posted on by 14

HI ,

 

Have a quick question regarding overriding the sharepoint list item by using power apps

 

in below example for an instance if users enter same ID with  some comments instead of giving different line item  can we override or remove old one and replace it with new comment?

 

any help would be highly appreciated 

 

varun123_0-1694630697472.png

 

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @varun123 

     

    Yes it is posible, you can use Patch() function for this.

    To update your record you will need to put forumla your Button.OnSelect property:

    Patch(
     YourSharePointList,
     LookUp(YourSharePointList,IDColumn = IdentificationVariable),
     {
     ColumnComment:TextBox1.Text
     }
    )


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • varun123 Profile Picture
    14 on at

    hey thanks for the response what is Identification variable? do have script already in on select like below where do i write above script?

     

    varun123_0-1694632059735.png

     

  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    You need to change the Defaults() to a LookUp()

    SpongYe_0-1694632494076.png

    Documentation says: You can combine the Defaults function with the Patch function to create a record.

    It will not update the existing record. 
     
    I think something like this:
     

     

    Patch(
     TestList,
     LookUp(YourSharePointList,MOID = TestList[@MOID]),
     {MOID: DataCardValue12.SelectedText.MO_ID},
     {FUID: DataCardValue13.SelectedText.FU_ID},
     {Lob: DataCardValue14.SelectedText.Value},
     {Comments: DataCardValue10.Text}
    );

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.
  • varun123 Profile Picture
    14 on at

    HI,

     

    Thanks for your reply am  getting an issue like "Error in retrieving data from network" 

     

    any ideas please?

     

    varun123_0-1695298232168.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard