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 has some invalid...
Power Apps
Answered

Patch has some invalid arguments

(0) ShareShare
ReportReport
Posted on by 3,514

I am trying to patch the current item inside gallery (using button onselect property)as follow:-

 

 

Patch('Grant Applications',ThisItem,{
Status:{Value:"Rejected"},
CurrenState: "60"
}
)

 

 

but i am getting that the patch has some invalid arguments? any advice please?

 

johnjohn123_0-1660776221490.png

 

Categories:
  • subsguts Profile Picture
    1,259 Moderator on at
    One thing I noticed is that your { brackets are not aligning. You should change them to something like this: 
    
    Patch('Grant Applications',ThisItem,
    {Status:"Rejected"},
    {CurrenState: "60"}
    )
    
    Not sure if this completely solves your issue, but I'm sure that the curly brackets are not correct. So see if that yields some results, and let me know.
    
    Steve
  • Verified answer
    subsguts Profile Picture
    1,259 Moderator on at

    Sorry one more thing.... is it really CurrenState without the "t" or CurrentState?  Just thought that might be a typo.

     

    Steve

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 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard