Im building an App based on a sharepoint list and I want to search based on the Sharepoint ID.
But when i check the colums powerapps retrieve from my SP List the ID column doesn't seem to be found or it's a very long string of data instead of the ID's shown in the SP list
Any ideas on how to retrive or convert the data because I need to build a searchfield on that SP id
Solved! Go to Solution.
@WarrenBelz ive tried the same thing on another numeric column and basically with the same result, it opens the combobox but does NOT show any values.
Im thinking that is has something to do with the number of rows in the SP list but if we think outside of the box. What are my options if the datasource is a SP list with more then 2000 rows and growing and I need a searchfunction on different columsn, should i work with a collection or something completely new ?
Hi @RvdHeijden ,
This is very strange to say the least and not something I have never seen before (a combo box and drop-down essentially take the same Items and display then similarly in the "primary" column).
A collection will only retrieve 2,000 (maximum) records unless you want to go for big collection alternatives - I have a blog on this.
Also a Combo Box works on 10,000 records - you just cannot search in that one. Sorry, but none of this makes sense to me.
@WarrenBelz Ive read your blog but Im a little confused on what to do next so I'm hoping you'll walk me through this.
As you know i have a SP list which now has around 2700 records (and growing) so basically it's to big for PowerApps as is (max 2000 rows)
I think I need to use a collection because I understand, through your blog, that this works up to 4000 records but seeing the list will grow I think I need to go for your third option (Bigger then 4000 records)
In the APP --> OnStart function Ive set Collect('colGBO' ; GBO Particulier')
Then Ive changed the gallery and comboboxes to get the items from the collection (=colGBO) instead of the datasource but unfortunately the last row being found is id 2019 (probably deleted 19 rows) so I still only get 2000 rows from sharepoint, what am I doing wrong ?
I read somewhere I need to create multiple Collections and then combine multiple collections into 1 big collection is that true and how should I do that ?
Hi @RvdHeijden ,
My blog runs through the various options on Collections. Once you get beyond the "up to 4,000" option, you need the "shadow ID" field in all your records. I also have a post how to collect the entire list using this number. Note however that the bigger they get, the actual collecting can be a performance issue.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
@WarrenBelz I've read this blog to but I must admit that it is to advanced for me and I dont really understand that formula
Clear(colAllList); With( { wSets: With( { wLimits: With( { wLimit: Sort( 'GBO particulier', SeqNoField, Descending ) }, RoundDown( First(wLimit).SeqNoField / 2000, 0 ) + 1 ) }, AddColumns( RenameColumns( Sequence( wLimits, 0, 2000 ), "Value", "LowID" ), "HighID", LowID + 2000 ) ) }, ForAll( wSets As MaxMin, Collect( colAllList, Filter( 'GBO particulier', SeqNoField > MaxMin.LowID && SeqNoField <= MaxMin.HighID ) ) ) )
In another post I've read a different formula but that still has the limitation for 2000 rows
Concurrent(
ClearCollect(colGBO1;Filter('GBO particulier';'GBO ID nr'<1000));
ClearCollect(colGBO2;Filter('GBO particulier';'GBO ID nr'>=1000 And ID<2000));
ClearCollect(colGBO3;Filter('GBO particulier';'GBO ID nr'>=2000 And ID<3000));
ClearCollect(colGBO4;Filter('GBO particulier';'GBO ID nr'>=3000 And ID<4000))
);;
ClearCollect(colGBO;colGBO1;colGBO2;colGBO3;colGBO4);;
Edit: this formula gives delegation warnings on the >=, > and < part of the formula
I want to try your formula but Im not sure on how to adapt it with my colums and collection name(s) can you help me with this ? there are to many parts , in your formula I do not understand. What info do you need to help me adapt your formula ?
It is a bit hard to guide without you having some basic understanding here, but assuming: -
The below should make a collection colAllList containing all the items in your list.
With(
{
wSets:
With(
{
wLimits:
With(
{
wLimit:
Sort(
'GBO particulier',
'GBO ID nr',
Descending
)
},
RoundDown(
First(wLimit).'GBO ID nr' / 2000,
0
) + 1
)
},
AddColumns(
RenameColumns(
Sequence(
wLimits,
0,
2000
),
"Value",
"LowID"
),
"HighID",
LowID + 2000
)
)
},
ForAll(
wSets As MaxMin,
Collect(
colAllList,
Filter(
'GBO particulier',
'GBO ID nr' > MaxMin.LowID && 'GBO ID nr' <= MaxMin.HighID
)
)
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
@WarrenBelz the column 'GBO ID nr' is the Sharepoint ID column which isn't delegable, so how do I fix that ?
Furthermore I've noticed there are 3 strings in the formula (marked in red), but do I need to change them ?
"Value"
"LowID
"HighID"
I've used and altered your formula and I do not get any errors or red lines just a few delegable bleu lines but that probably has to do with the max 2000 rows
That is correct and as per my blog, this simply will not work with the ID column. You need another sequential unique numeric identifier in the list. I always maintain a numeric field (called IDRef) in my lists and write the ID to it when a record is created. You also do not need to change the items in red.
The other possibility is if you have another text or numeric field that is always filled with a set value of a small number (such as a Status field) and no single item set will contain more than 2,000 records. You can then collect each set and combine them.
Other than that, you cannot collect the whole list of this size.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
@WarrenBelz I think I need to get that shadow column based on the sharepoint ID field because my app needs to be able to filter on that number.
You say that it's possible to create a new column which copies the value in that ID field right ?
Do I need to create that field in SP or in PA ?
And how do I do that, is there a formula or do I need to create a flow to do so ?
Hi @RvdHeijden ,
The field needs to be a numeric field in SharePoint. If you always create new records in Power Apps, you can put this on the OnSuccess of the New Form
Patch(
YourListName,
{ID:Self.LastSubmit.ID},
(YourShadowField:Self.LastSubmit.ID}
)
It is safer to do a Flow on "When an item is created". You will also have to "back populate" existing items.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community. We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community. Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team
Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp
It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community. As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn! Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution. When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together! Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need: Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!
We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him! Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success. Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!
Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community. As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn! This Week's Tip: Private Messaging & Macros in Power Apps Community Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros: Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate) Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)
Did you miss the Copilot Studio Coffee Chat on April 4th? This exciting and informative session with Dewain Robinson and Gary Pretty is now available to watch in our Community Galleries! This AMA discussed how Copilot Studio is using the conversational AI-powered technology to aid and assist in the building of chatbots. Dewain is a Principal Program Manager with Copilot Studio. Gary is a Principal Program Manager with Copilot Studio and Conversational AI. Both of them had great insights to share with the community and answered some very interesting questions! As part of our ongoing Coffee Chat AMA series, this engaging session gives the Community the unique opportunity to learn more about the latest Power Platform Copilot plans, where we’ll focus, and gain insight into upcoming features. We’re looking forward to hearing from the community at the next AMA, so hang on to your questions! Watch the recording in the Gallery today: April 4th Copilot Studio Coffee Chat AMA