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 Function Not Upd...
Power Apps
Answered

Patch Function Not Updating SharePoint List

(0) ShareShare
ReportReport
Posted on by 38

I am trying to use the patch function in the OnSuccess property of my Form Control to update the status column in my 'Entry Form' SharePoint list. 

 

For example, when the user completes the form for Phase 1 of the project the power app looks up the relevant project number in the 'Entry Form' and updates the 'Current Phase' to "Phase 1". 

 

I am not getting any errors but it's not updating the list. Any ideas?

 

 

Patch(
 'Entry Form',
 LookUp('Entry Form', 'Project Number' = DataCardValue2.Text),
 {
 'Current Phase': {Value: "Phase 1"}
 }
)

 

 

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

    Hi @Power_Ninja ,

    The issue I believe is that the content in that control is not available after the form is submitted (assuming it is on the Form). You can use the field name you have just posted as below

    Patch(
     'Entry Form',
     LookUp(
     'Entry Form', 
     'Project Number' = Self.LastSubmit.FieldName
     ),
     {
     'Current Phase': {Value: "Phase 1"}
     }
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • elseb Profile Picture
    774 Moderator on at

    Hi,

     

    Have you confirmed that the value of 

    DataCardValue2.Text

    Exists in your list? 

     

    I'd add Coalesce(LookUp('Entry Form', 'Project Number' = DataCardValue2.Text), Defaults('Entry Form')),

    instead of just lookup, that way it will create new record if it wont find existing one and you'll know where the issue is

     

     

  • Power_Ninja Profile Picture
    38 on at

    @WarrenBelz you are absolutely right - thank you! It's been a long week. 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard