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
Answered

ForAll Patch

(0) ShareShare
ReportReport
Posted on by 3

I have a gallery called Gallery3 where the quantities of items requested are, I need to update the table in Sharepoint called GESTAO_TI for each item requested, based on the "ITEM" column, which is the same as the "item_req" field in Gallery3, I need to update the list GESTAO_TI the QTDE column with the updated quantity

 

GETAO_TI
ITEM                QTDE
A                      3
B                      22
C                      12


Gallery3
item_req           qtde_req
A                       2
B                       5
C                      11

 

I tried the code below, but it didn't work
ForAll(Gallery3.AllItems;Patch(Gestao_TI;LookUp(Gestao_TI; ITEM = Gallery3.AllItems.item_req);{QTDE:QTDE-qtde_req}))

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Diogo 

     

    Can you try to update the expression to:

    ForAll(Gallery3.AllItems;Patch(Gestao_TI;LookUp(Gestao_TI; ITEM = item_req);{QTDE:LookUp(Gestao_TI; ITEM = item_req).QTDE-qtde_req}))

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard