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 Error : invocati...
Power Apps
Answered

Patch Error : invocation of unknown or unsupported function

(0) ShareShare
ReportReport
Posted on by 53

Hi,

I am trying to patch back a new available qty, when an item from a collection is removed.

The collection is a  shopping basket created from a sharepoint list called 'Staff Shop List'

The basket is visible to the user and they can delete items from it

I then want to return the qty back to 'available' stock.

The two Material fields are the same format

I am using this formula

Patch('Staff Shop List',Lookup( 'Staff Shop List', Material = MaterialBought), { Available: Available + ThisItem.Qty })

 I get the error

"invocation of unknown or unsupported function"

 

Am i missing something from the formula, or is it the wrong way to udpate the available back?

 

Thanks

 

 

Categories:
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! Patch Function is wrong 😕 

     

    ForAll(
     Filter(
     'Staff Shop List';
     Material = MaterialBought
     );
     Patch(
     'Staff Shop List';
     Defaults('Staff Shop List');
     {
     Available: Available + ThisItem.Qty
     }
     )
    );;

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard