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 / Filtering SharePoint L...
Power Apps
Answered

Filtering SharePoint List by ID Value

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

Within a ForAll loop, I'm trying to build a collection from a SharePoint list using the ID of the SharePoint list, against the ID of the current record. I'm getting an incompatibility issue though (Table vs Number):

 

RupertCoyb_0-1636995625535.png

 

I can't cast the first ID to a value, so I'm not sure what I'd be able to do in this case. 

 

I also seem to be getting a delegation warning which I wasn't expecting.

 

If anyone has some tips I'd be very grateful!

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    try ID = ThisRecord.ID

     

    you have already referenced the date source in the filter, you don't need to do it again. 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @RupertCoyb

    As @C-Papa said that you should refer to the ID directly. I think this could solve your formula issue directly.

    vqiaqimsft_0-1637136390246.png

    You could mark the reply from @C-Papa as an answer.

    As to the delegation issue, not sure about the data set in the SP list. If the records does not exceed the 2000, you could just ignore the delegation warning because it does not effect the app performance.

    You could also modify the records limit from 500 to 2000 in the advanced settings as below:

    vqiaqimsft_1-1637136539705.png

     

    To avoid the delegation warning, you could use the With() function.

  • RupertCoyb Profile Picture
    16 on at

    Thank you @C-Papa and @v-qiaqi-msft  for your replies on this. It seems to be working as I would like it to now.

     

    Unfortunately, the list is likely to exceed 2000 records so I'll look into the with() function to see if that can help. 

     

    Thanks again! 

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard