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 Apps
Unanswered

Patch

(0) ShareShare
ReportReport
Posted on by 25

i have to make a button new revision so if i click on that value of revision must be incremented by 1 that ogf max value of revision of that particular product so i used this on the onselect property of revision button

Patch(
    tblOrders,
    Defaults(tblOrders),
    {
        QuoteNumber:v_PurchaseProduct.QuoteNumber,
        Revision: Max(tblOrders,v_PurchaseProduct.Revision) + 1
    }
)
and my dropdown is working but now i need to patch the records into table purchase product of particular revision which is selected so for that i used
ForAll(Filter(tblPurchasedProducts_3,PO_ID = v_PurchaseProduct.QuoteNumber & "_" & txtRevision.Text),Patch('Table Purchased Products', Defaults('Table Purchased Products'), {Product:ThisRecord.Product,PN:ThisRecord.PN,Quantity:ThisRecord.Quantity}))
 
now records are made in sharepoint list ..but it is not showing in gallery when i click on the dropdown revision value which is being incremented and then selected
Categories:
I have the same question (0)
  • AmínAA Profile Picture
    1,228 Moderator on at

    Greetings!

     

    Just to be clear, everything works fine, but after all the records are made, your gallery doesn't update. Am I right?

    If that's the case, you could try using a Refresh('YOUR DATA SOURCE'), after the forAll, making sure that your datasource is refreshed, which might not be refreshing for whatever reason. and after that if you're using a collection, use a ClearCollect() to save the latest results, and if you're not using a collection after the refresh, your gallery should be showing latest data!

     

    Hopefully this helps you out, otherwise, feel free to reply!

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard