web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ForAll Issue when usin...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard