I have a large SharePoint list that we'll call Table1. In Table1 I have a Person/Group column (a nested table) that'll we'll call Table2.
In my app, on loading, I only want to collect the rows from Table1 where User().Email is found in Table2.
This is part of the formula I'm using: Filter(Table1, User().Email in Table2.Email). When I set a Gallery's items to that formula, nothing is found even though my email does exist in some places in the People/Group column.
PowerApps gives a Delegation Warning about In, but the PowerApps Delegation documentation says In is supported.
Is there a way to accomplish what I'm trying to do?
Solved! Go to Solution.
Ouch!! That is a challenge to delegate properly - in fact, you can't really delegate that criteria.
Here are the options:
1) Consider an alternate list to be an index to the first. This is a pain for the data side of things but much faster from the app perspective.
The concept is to write another record to a second list with the user email and the record ID in it whenever you set a user in the primary table, or have PowerAutomate do this when a record is added or changed.
You would then, from your app, be able to do a delegable filter criteria to the second list:
Filter(recordList, Title=userEmail)
This would return a table of all the record ID's in the primary.
This works but has to be done just right to be accurate.
2) Go back to pulling it all into a collection, but consider the following changes to your formula to speed up a little:
Concurrent(
Collect(List0, Filter(Table1, ID2 >0)),
Collect(List1, Filter(Table1, ID2 >2000)),
Collect(List2, Filter(Table1, ID2 >4000)),
Collect(List3, Filter(Table1, ID2 >6000))
);
ClearCollect(ListItems, List0, List1, List2, List3)
Then you could perform the criteria against the collection. This is much slower for the app. Especially if you need to refresh.
The In operator is actually not delegable to SharePoint. The documentation you mention discusses general delegable operators. However it does mention that each connector has its own specific set of operators that are delegable. In the case of SharePoint, if you look at the connector documentation for delegation, you will see that In is not listed and thus will not be delegable. I know, it's confusing! I would rather they specify delegation in a whole different way so that it is crystal clear for people, but not at this time.
So this does not mean that you can't do what you need, you just need to go about it in a different way. One way to to try and collect all of the records from Table1. I find that to be excessive for these type of things, but it is an option.
Another option is to utilize a ForAll function to return a table of what you want.
But, I am not clear how to proceed in your case because your formula is not very clear. In your Filter(Table1, User().Email in Table2.Email) formula, this doesn't really make sense. The Filter function has two parameters - the datasource table and the criteria. Filter will go through each record in the table and apply the criteria to evaluate to true (include record in result) or false (exclude record from result). In your case your criteria is to look up the current user email in Table2's Email column. That will return true for each record of Table1. So, the end result is, you're not going to get anything relating Table1 and Table2 together.
If I had to make a guess, you are really trying to find if the user in Table1 record is found in Table2 email column based on the current user. And if that is the case, then you really don't need to do anything with Table2 because (in your post description) you have not established what the relationship is between Table1 and Table2. You said you wanted records from Table1. But what is the relation to Table2?
I hope this is helpful for you.
Thanks for providing the correct delegation info.
I originally did collect the entire table, but, due to the table's size, it was slower than I'd like.
(Because of the 2000 limit I found this workaround:
ClearCollect(LoopCount,FirstN([0, 2000, 4000, 6000],RoundUp(First(Sort(Table1, ID2,Descending)).ID2/2000,0)));
Clear(ListItems);
ForAll(LoopCount,Collect(ListItems,Filter(Table1,ID2 > Value)))
)
To clarify my issue, I guess it may be from my misunderstanding of how nested tables work?
I assumed that because Table1 contains a People/Group column (Column1), and Column1 itself contains a table (which I'm just calling Table2 for this post) for each record, then the Filter operator should have then been able to "dig down" through Table1 into Table2 to find the matching value.
Or perhaps my naming convention in the formula was confusing. Would it have been more accurate as Fitler(Table1, User().Email in Column1.Email)?
So in the case of my formula, the Datasource is Table1 and the criteria is matching a value in the Email column of the table residing in Column1.
I know how to reference nested tables, but I've never done it before as a part of a filter criteria.
This is clearer. So the bigger question now is about your Person column - does it allow multiple people to be selected or is it a single person column?
The People column allows multiple selections.
Ouch!! That is a challenge to delegate properly - in fact, you can't really delegate that criteria.
Here are the options:
1) Consider an alternate list to be an index to the first. This is a pain for the data side of things but much faster from the app perspective.
The concept is to write another record to a second list with the user email and the record ID in it whenever you set a user in the primary table, or have PowerAutomate do this when a record is added or changed.
You would then, from your app, be able to do a delegable filter criteria to the second list:
Filter(recordList, Title=userEmail)
This would return a table of all the record ID's in the primary.
This works but has to be done just right to be accurate.
2) Go back to pulling it all into a collection, but consider the following changes to your formula to speed up a little:
Concurrent(
Collect(List0, Filter(Table1, ID2 >0)),
Collect(List1, Filter(Table1, ID2 >2000)),
Collect(List2, Filter(Table1, ID2 >4000)),
Collect(List3, Filter(Table1, ID2 >6000))
);
ClearCollect(ListItems, List0, List1, List2, List3)
Then you could perform the criteria against the collection. This is much slower for the app. Especially if you need to refresh.
Thanks for all your help!
I was worried that was the case but was holding out hope. I'll implement your second suggestion for a faster collection process.
There is now a different SharePoint delegation workaround that doesn’t involve secondary lists or collections: https://powerusers.microsoft.com/t5/Community-App-Samples/Large-SP-List-Delegation-Workaround-App/td...
It uses a Power Automate & ParseJSON( ) set-up to delegate filters to SharePoint & to flow actions without many of the typical delegation limits placed on a direct SP connection in Power Apps.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08 23 @WarrenBelz 31 @DBO_DV 10 @Amik 19 AmínAA 6 @mmbr1606 12 @rzuber 4 @happyume 7 @Giraldoj 3@ANB 6 (tie) @SpongYe 6 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08 10@WarrenBelz 25 @DBO_DV 6@mmbr1606 14 @AmínAA 4 @Amik 12 @royg 3 @ANB 10 @AllanDeCastro 2 @SunilPashikanti 5 @Michaelfp 2 @FLMike 5 @eduardo_izzo 2 Meekou 2 @rzuber 2 @Velegandla 2 @PowerPlatform-P 2 @Micaiah 2 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8 SunilPashikanti8
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages