Notifications
Announcements
Hi,
How to filter SharePoint List based on Collection Value. Only one record will be in the collection.
I just want to test something. Don't want to use combo box for the filter.
If there will only be 1 record in the collection, you can just use First(collectionname).SourceDestName.
So it would be Filter('Firewall - ...',SourceDestName = First(colFirewallAddressSelected).SourceDestName)
There is a delegation warning. Since the SharePoint list have more records this is not a solution.
Is there a way I can Filter a SharePoint list with a collection record without a delegation warning.
The delegation warning is from using the First function. In your original question, you said there would only be 1 record in the collection, so the filtering will work properly. If there will be more than 1 record in the collection, instead of First, you'll need to use Filter to find the collection's record.
Can you provide the final filtering code that you ended up using? Note that the delegation warning (not error) that you're getting is more than likely only applicable to the "first" portion of your query, which again, if the collection only contains the one record, will never be an issue. For Sharepoint data sources, Filter can be delegated. First() cannot, but first is being applied to your collection, not the SP list.
Filter( 'Firewall - Add List', SourceDestName = First(colFirewallAddressSelected).SourceDestName)
I need to use a collection for this filter.
If you absolutely don't want the warning there (again, it won't be an issue with a 1 record Collection), you can always assign your Collection value that you're filtering on to a variable (either local or global) and use that as the filtering value for the SP List.
So for the screen that your filtering on, for the OnVisible property, add UpdateContext({locSourceDestName: First(colFirewallAddressSelected).SourceDestName })
Then for your filtering, Filter('Firewall - Add List',SourceDestName = locSourceDestName)
I'm testing on how I can make SharePoint list available as a drop down on a Combo Box without a delegation.
That was the code that I was having issue.
Now work as a charm.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268