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 / Assistance Needed with...
Power Apps
Answered

Assistance Needed with ForAll Function in Power Apps

(1) ShareShare
ReportReport
Posted on by 12

Hi [Recipient's Name],

I hope this message finds you well. I’m currently working on a Power Apps project where I have a gallery that displays certain records. I have a Patch function that works perfectly on its own:

 
Patch(
ETP_CAP_AAF,
LookUp(
ETP_CAP_AAF,
Email = User().Email && Date = SelectedDate && CAP = CAP_2.Text
),
{'Nombre d''ETP': Value(TextInput1.Text)}
)

However, I'm struggling to incorporate a ForAll function to iterate through the items in the gallery while using this Patch function. I would appreciate any guidance or suggestions on how to implement this effectively.

Thank you for your help!

Best regards,

I have the same question (0)
  • Verified answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi 
     
    Try to use the following formula, it should work - 
    ForAll( GalleryName.AllItems as Item, 
    
    Patch(
    ETP_CAP_AAF,
    LookUp(
    ETP_CAP_AAF,
    Email = User().Email && Date = Item.Date && CAP = Item.CAP
    ),
    {'Nombre d''ETP': Value(Item.TextInput1.Text)}
    ))
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • CU01100710-1 Profile Picture
    12 on at

    Hi Nandit,

    I wanted to take a moment to sincerely thank you for your prompt and detailed response to my question. Your suggestion gave me the perfect direction, and after making a few adjustments, I was able to implement a solution successfully.

    I’m grateful for the support!

    Best regards,

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
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard