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 / ForAll Issue when usin...
Power Apps
Answered

ForAll Issue when using a collection

(0) ShareShare
ReportReport
Posted on by

Hello All,

 

I have created a collection CheckedItems, which is then used to create entries in a SharePoint list using a patch function which I have done successfully. The second part (below) is to then update a different SharePoint list which uses the same collection, ThisRecord.'Wafer ID' to update specific data.  Please take a look below.

ForAll(CheckedItems,
Patch(BatchTrack, LookUp(BatchTrack, 'Batch ID'= DataCardValue16_1.Text && 'Wafer ID' = ThisRecord.'Wafer ID'),
 {
 State: {Value: "TrackOut"},
 OpCode: CurrCount + 1
 }
 ));

The error I get is pasted in below: 

rob4681_0-1704266217296.png

I am new to collections, so hopefully it's a simple mistake. The error highlights the LookUp function, so I suspect the issue is with 'Wafer ID' = ThisRecord.'Wafer ID'

 

Thank you in advance.

 

Rob

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @rob4681 ,

     

    Do you want to look up record which has same 'Wafer ID' with CheckedItems?

    Please try this:

    ForAll(CheckedItems As C,
    Patch(BatchTrack, LookUp(BatchTrack, 'Batch ID'= DataCardValue16_1.Text && 'Wafer ID' = C.'Wafer ID'),
     {
     State: {Value: "TrackOut"},
     OpCode: CurrCount + 1
     }
     ));

     

    Best regards,

    Rimmon

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

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard