Mastering Delegation in Power Apps: A Comprehensive Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 118

  • @davidgreen6486
    @davidgreen6486 ปีที่แล้ว +17

    Thanks for explaining the horrors of delegation, Shane. Just in time as well, as I have a Power apps interview tomorrow and I JUST KNOW that the 'D' word will crop up at some point in my ordeal. Wish me luck!

    • @nikolagrkovic8769
      @nikolagrkovic8769 ปีที่แล้ว +1

      How did it go?🎉

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      Happy to help. How did it go?

    • @davidgreen6486
      @davidgreen6486 ปีที่แล้ว +1

      @@ShanesCows funny story -- I got the day wrong! It's actually tomorrow 12:00 GMT. Wish me luck...again!

    • @nightfire1266
      @nightfire1266 ปีที่แล้ว

      @@davidgreen6486 Hope it went well!

    • @JohnIanMacasinag
      @JohnIanMacasinag ปีที่แล้ว +1

      also have an interview tomorrow also I feel very attacked for using collections.

  • @Cybermatik
    @Cybermatik ปีที่แล้ว +6

    A big thank for your amazing tip to place the non delegation limit to 1 in order to not fall into Power Apps lying in our faces!
    Deal with delegation is not easy and has to be considered and done at the beginning of the app making, a good reminder ;)

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      😎 Comments like this make me smile. Thank you 😊

  • @Anenah
    @Anenah ปีที่แล้ว +1

    Thanks!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Thank you for the support. 😎

  • @stuartduncan2772
    @stuartduncan2772 7 หลายเดือนก่อน

    I broke one of my apps today. It made me come scrambling back to you for help. I watched this video a few times when I started using Power Apps but it's always good to get a refresh. Thanks again Shane.

    • @ShanesCows
      @ShanesCows  7 หลายเดือนก่อน

      Glad it helped! Always panic when you break something that was working. 🙃

  • @oluwatobipaul6171
    @oluwatobipaul6171 ปีที่แล้ว +1

    Thank you Shane Young for the refresher on delegation

  • @dougydoe
    @dougydoe ปีที่แล้ว +1

    Great video and content. Always good to refresh ones memory about this important topic. Thanks for sharing

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Happy to help. Have a great day. 🐶

  • @HumanityFirst24
    @HumanityFirst24 ปีที่แล้ว +1

    Learned few good tips to test delegation. Thank You, Shawn.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Glad it was helpful!

  • @franknielsen3219
    @franknielsen3219 ปีที่แล้ว +1

    THX for a very good recap. Cannot wait to start on your Power Platform University

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      Looking forward to having you Frank. 😎

  • @THEDTSMAN
    @THEDTSMAN ปีที่แล้ว +1

    Good video on explaining delegation. Definitely a video a lot of people can benefit from. Thanks

  • @thrilled2bits
    @thrilled2bits ปีที่แล้ว +1

    Excellent vid, Shane. Appreciate it.

  • @spen2431
    @spen2431 ปีที่แล้ว +1

    A great refresher... thanks Shane 💥💥

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Happy to help. Have a great day. 🐶

  • @jjpk80
    @jjpk80 ปีที่แล้ว +1

    Excellent explanation.

  • @davidallard9913
    @davidallard9913 ปีที่แล้ว +2

    Awesome video !
    If I understand right, If I use Dataverse with 100000 entries , the search, filter, whatever, PowerApps will find and show me all record I want, even if there filter/find 20000 entries ?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      Yup. 😎 I have never scrolled past 8700 entries but in theory it could keep goin.

  • @isabelaramalho3112
    @isabelaramalho3112 8 หลายเดือนก่อน +1

    Thank you so much. This video helped me a lot! : )

    • @ShanesCows
      @ShanesCows  8 หลายเดือนก่อน

      You're very welcome!

  • @davediguer
    @davediguer 10 หลายเดือนก่อน +1

    Thanks for the video - any insights on how to deal with Delegation and the non-delegable Distinct() function ?

    • @ShanesCows
      @ShanesCows  10 หลายเดือนก่อน

      Distinct not being delegable isn't something I have a work around for. Best I can offer is trying to shrink your data set first with nested fucntions. th-cam.com/video/iG8SjWtX1yM/w-d-xo.html

  • @joelsnellman1729
    @joelsnellman1729 ปีที่แล้ว +1

    Hi Shane, thank you for your awesome content! A question about performance. I have an 'Inventory Transaction' table, in which the amount of rows will be huge. in the same table, I have incoming (one row) and outgoing (can be several rows). All the outgoing rows are related to one incoming row. Meaning, I can calculate the current saldo of the incoming row, by a filter and sum function of incoming and outgoing rows.
    I have two options. To add one 'Current Saldo' column, that always have the calculated sum up to date.
    Or I can always use the filter and sum function to calculate the current saldo.
    What is your thoughts on performance in this case. I would prefer to always use the filter and sum function. But since the inventory table will be huge, and, many times I will need to perform the sum filter calculation for roughly 100 rows, affecting perhaps 100 rows each, meaning 10 000 rows in total.
    I would be really thankful for your thoughts in this case!

  • @1culcat
    @1culcat ปีที่แล้ว +1

    Hey shane! Great video! If i were to move to use SQL to house my data, is there licensing issues if internal users want to use my powerapp? Will they need premium licensing as well?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      Yes, SQL is a premium datasource so all users of the app internal or external would need a premium license

  • @funkycowie
    @funkycowie 9 หลายเดือนก่อน +1

    So where sharepoint can be viewed in an excel file via a query connection, is that limited in the same way?

    • @ShanesCows
      @ShanesCows  9 หลายเดือนก่อน

      I am not sure, I have never looked into how Excel does it. SOrry.

  • @firmhand
    @firmhand ปีที่แล้ว +1

    is that an artificial limitation? I expected Sharepoint to be able to do odata API. It has search… Weird to call it delegation when it’s an api call basically

  • @davidjimenez8952
    @davidjimenez8952 ปีที่แล้ว +1

    Master class again. top!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Thank you! Cheers!

  • @athanasioszisopoulos387
    @athanasioszisopoulos387 11 หลายเดือนก่อน

    Oh my god, that was great, thank you!

  • @ABCD-ABCDEFGH
    @ABCD-ABCDEFGH ปีที่แล้ว +1

    where is the link to the video with the workaround for the delegation limit?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      This one. th-cam.com/video/lYi24okXDPs/w-d-xo.html

  • @MultiMinhgiang
    @MultiMinhgiang ปีที่แล้ว +1

    How to merge Screen or two apps into one in power apps ? I have two different apps.
    Thank you !!!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      You can copy and paste between apps in studio. Open Both and copy and paste is no problem

  • @MrPaulpierce34
    @MrPaulpierce34 ปีที่แล้ว +1

    Hey Shane, thanks for all the material you share. Quick question. I know that collections are non delegable. However, I am wondering if they are partially delegable. For example, ClearCollect(collectionName,Filter(datasource,dropdown.Selected.Id = Id)). Is the filter portion of the equation delegable?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Yes. This video will help on partial delegation like you are thinking about th-cam.com/video/iG8SjWtX1yM/w-d-xo.html

  • @TheKermit2110
    @TheKermit2110 ปีที่แล้ว +1

    Shane, cheers again, such an important video. I went back through your related vids and a Q occurred to me that has never been clarified (perhaps because the answer is obvious but we are all told “there are no stupid questions” so….): Most of the time users want more recent records. Does delegation always work on 1st x records based on ID index from 1st to last, OR…..if the E.g. Sharepoint list is sorted ‘newest to oldest’ , would delegation work on the most recent items?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +2

      You can nest queries. So put your delegable sort inside of a non-delegable query to get what you want. 🤩 This video talks about it. th-cam.com/video/lYi24okXDPs/w-d-xo.html

  • @zerokhan858
    @zerokhan858 2 หลายเดือนก่อน +1

    its really clever to set the delegation limit to 1 to sets if your code complies with delegation

    • @ShanesCows
      @ShanesCows  2 หลายเดือนก่อน +1

      Thanks! I wish more people would do it. 😎

  • @piotrrusak
    @piotrrusak ปีที่แล้ว

    Shane - great video (as always).
    I have question to gallery behavior shown in your video (but not fully) - you mentioned gallery connected to large list can load all items (when you will scroll) - you reached 6000 items (no error on your side). I did some more tests with list that contained +10 000 items, results:
    every time I reach more than 5000 items: 5300 / 5500 / 1 time I reached 8000 items I receive following error in Network tab
    Status: 400, "The attempted operation is prohibited because it exceeds the list view threshold." Scroll does not work anymore.
    My Gallery's Data Source is super simple: just 'Large List' (no filtering, no nothing fancy) Gallery inside just displays single title.
    I believe it is connected with SP List limitations and ID field not being Indexed :-( (OOTB SharePoint online uses this ID to do paging / via RenderListDataAsStream API requests)
    Any comments from your side (how to bypass this limit - to have infinite scroll possibility ??)

    • @adedaporh
      @adedaporh ปีที่แล้ว

      Unfortunately, pagination in Power Apps is very inconsistent, and it rarely even works properly.
      What it does most of the time is to download an increasing amount of data each time. In other words, it gets 100 items, then 200 items, and so on. Rather than just the next 100 items. Actually, it's worse than that.
      The effect, of course, is that a request of more than 5000 items will be reached, and the limit threshold error will inevitably occur.

    • @piotrrusak
      @piotrrusak ปีที่แล้ว

      @ShanesCows can you please take a look on above and share your thoughts on this

  • @timwalter6989
    @timwalter6989 ปีที่แล้ว +1

    As always, great job in explaining the concepts and use of the Power Platform! The only thing missing from your recent videos is the "Intro"... What's up with dropping it?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Been trying different formats to get to the content faster. I also miss “here’s our intro@ 😍

    • @caraziegel7652
      @caraziegel7652 ปีที่แล้ว +1

      @@ShanesCows i like 'These guys!' lol

  • @Perfektionist
    @Perfektionist ปีที่แล้ว +1

    When i change my delegation limit to 2 for testing purposes, all of my Dropdowns that normally just use an unfilitered sharepoint list as datasource get cut after the second entry. Is this really a delegation limit or is that a different powerplatform problem? Because in the dropdowns there should be nothing to delegate?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Interesting. I never realized this. I wonder if it changed. 🫤 But you are correct, the Delegation limit effect dropdowns even for delegable queries. 😔

  • @venusv4698
    @venusv4698 2 หลายเดือนก่อน

    Hi, if I can ensure my dataset only can have up to 2000 records, does it matter if I use job delegate function? Reason for asking is that I need to search within field value where “startwith” can’t help

  • @venusv4698
    @venusv4698 2 หลายเดือนก่อน +1

    So if I use delegate function, I can process more than 2000 records, is that correct??

    • @ShanesCows
      @ShanesCows  2 หลายเดือนก่อน +1

      Yes, if your query is delegable then it will not be limited.

  • @ResponsibleXI
    @ResponsibleXI ปีที่แล้ว +1

    But when does the SharePoint list threshold limit of 5000 hits the Power Apps? When the gallery is showing 10000 items, its definitely overcoming the threshold limit. Or did I miss anything here?

    • @finnpower92
      @finnpower92 ปีที่แล้ว +1

      What do you mean Sharepoint List limit being 5000? I thought you can have like 50k-500k rows in a Sharepoint List?

    • @ResponsibleXI
      @ResponsibleXI ปีที่แล้ว +1

      @@finnpower92 you can have 30 million items in SharePoint list. But there is a threshold limit of 5000 per list view. Just checking with Shane if there is an impact on PowerApps due to that threshold limit

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      The 5000 item limit in SharePoint is around filtering views. If you index the column in SharePoint you can stretch to 25k items last time I checked. 😎

    • @ResponsibleXI
      @ResponsibleXI ปีที่แล้ว

      Thank you!

  • @MrKhulaid
    @MrKhulaid 11 หลายเดือนก่อน +1

    I was told that distinct with nested filter delegates 50k records, Is that true

    • @ShanesCows
      @ShanesCows  11 หลายเดือนก่อน +1

      Distinct is not delegable as far as I know. Unless they added it for DataVerse

    • @MrKhulaid
      @MrKhulaid 11 หลายเดือนก่อน

      @ShanesCows Thanks Shane, apprwcite the reply. Do you know if countrows with nested filters can return 50k rows from sharepoint?

  • @martinc3907
    @martinc3907 10 หลายเดือนก่อน +1

    Date is not delegable so I can't use a date picker, I have to convert the date to an integer. But why? Having fun as my main table has over 1 million rows and the date table over 30,000 rows. And I am using SQL. Thanks for the clear collect tip I'll won't use that and see if that resolves one of my delegation issues. However not happy about having to filter on integer date.

  • @ItsGravix
    @ItsGravix 11 หลายเดือนก่อน +1

    Lol I wish I had more teachers like you !!

    • @ShanesCows
      @ShanesCows  11 หลายเดือนก่อน

      Thanks. 😎

  • @robofski
    @robofski ปีที่แล้ว +1

    Really well explained, I finally understand delegation 😂

  • @ceyloncitizen8740
    @ceyloncitizen8740 ปีที่แล้ว +2

    Thank you Shane ❤️‍🔥❤️‍🔥❤️‍🔥

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Glad to help. 😀

  • @aaron6516
    @aaron6516 ปีที่แล้ว +1

    I would LOVE to see an affordable expansion of Dataverse capacity. Dataverse could be so amazing if I could just store more in it. I need the best of both SQL and SharePoint. Dataverse would be it except I keep hitting capacity limits...

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      I am hopeful overtime we continue to see economies of scale and lower pricing. I agree with your thoughts.

  • @islamezz5019
    @islamezz5019 9 หลายเดือนก่อน

    Thank you for this Video
    i have a problem with Filter Function Result
    i know Delegation limitation but i use a simple Filter to get a table data as below
    in text Proberty for Text Label >>> Count Row(Filter('My Data Verse Table', 'email column' = User().email))
    But i get only one record Table
    if i use >>> Filter('My Data Verse Table', 'email Coulon' = User().email) in item Proberty for a gallary it list all record Correctly.
    Can You offer some help.
    Thank You.

  • @Andyandrwew144
    @Andyandrwew144 ปีที่แล้ว +2

    I build my apps with a delegation limit of 1 to be 100% sure I am not being limited by delegation.

  • @villagefood1179
    @villagefood1179 ปีที่แล้ว +1

    This is great video but We want video about Power Apps with Sql End to End Project that helps lot

  • @felixverduin569
    @felixverduin569 ปีที่แล้ว +4

    The fact that AddColumns isn't delegable but there is no warning is a very nasty feature. Tip, set the delegation limit to one or three rows to check your application for these invisible delegation warnings. Edit: shane explains this! Very good tip.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Great minds think alike 😎

  • @paragkeshardas8139
    @paragkeshardas8139 5 หลายเดือนก่อน +1

    how to see all 10000 data then ??

    • @ShanesCows
      @ShanesCows  5 หลายเดือนก่อน

      How do you want to see it? Technically your users can scroll through a simple gallery to see all 10,000 records but who would do that. What is the business problem you are trying to solve.

  • @austinstern
    @austinstern ปีที่แล้ว +1

    I hate to say it but the technical reason SharePoint doesn't delegate where it probably should is most likely to make people pay for dataverse

  • @jeanpierreragequit1726
    @jeanpierreragequit1726 ปีที่แล้ว +1

    I just finished to understand clearly u could mix for the worst a Filter delegable function with an In operator making all ur formula undelegable with text.
    Happened to me so many time til i saw a former video from u using Startswith function to avoid the In operator.
    U r so didactic ! Thx u again for ur work & ur video !!!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Awesome. Glad it helped.

  • @davidgraf8012
    @davidgraf8012 ปีที่แล้ว +2

    It's irresponsible on the part of MS to make an issue of delegation. Putting users in a bind of either messing with delegation or spending big bucks on premium sources like Dataverse is a vendor created problem. People like Shane need to start calling MS out on this.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      David I think the would say it is technical limitations of SharePoint as a data source but not sure. Sorry, don't shoot the messenger. :)

  • @shud7101
    @shud7101 ปีที่แล้ว +1

    Off topic but it looks like Microsoft fixed that weird separator in galleries.

    • @caraziegel7652
      @caraziegel7652 ปีที่แล้ว +1

      when? i still had it today - i mean, they did fix its positioning though. its just that its white and the background is white.

    • @shud7101
      @shud7101 ปีที่แล้ว +2

      @@caraziegel7652 the position thing was very annoying.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      I still had problems with it last week so I am hopeful you are right. 😎

    • @shud7101
      @shud7101 ปีที่แล้ว

      @@ShanesCows I added a gallery to an app yesterday and it wasn’t giving me a problem. Hopefully it wasn’t a fluke.

  • @blairforbes1132
    @blairforbes1132 ปีที่แล้ว +5

    I guess a good point to take away from this video is also not to use SharePoint as a data source

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      It has its challenges for sure but most apps are built on it.

  • @michelhegeraat5430
    @michelhegeraat5430 ปีที่แล้ว

    Knowing that you are a SharePoint guru I'm sure you also know that behind SharePoint list is .... an SQL database. So we don't need to wonder why we have these delegation issues. We know it is intentionally caused by our friends at microsoft. I just need to figure out why we should move away from their SharePoint to another microsoft product. But I guess it all comes down to licencing costs allowing them to make a little more money.

  • @ChristosAmpatzidis
    @ChristosAmpatzidis ปีที่แล้ว +1

    Hey Shane. There is a work around provided here: th-cam.com/video/QNSRKpyIHPg/w-d-xo.html. Is that something you would suggest to overcome the 2000 limit or not? Could it cause performance issues? Thnx for the help anyway!!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      It works but it scares me that you are creating stability issues. I feel like Microsoft limited things to 2000 for a reason so I never go over it. But it is possible for sure. :)

  • @jefflund5685
    @jefflund5685 ปีที่แล้ว +1

    Woot! First!

  • @kehindeakiode2865
    @kehindeakiode2865 ปีที่แล้ว +1

    First to like

  • @rlogborn
    @rlogborn ปีที่แล้ว +1

    2000 - meh!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      No one loves that number.

  • @wcait8303
    @wcait8303 9 หลายเดือนก่อน +1

    Hi Shane,
    My name is Mike and I'm having trouble trying to find a way to solve delegation warning on my power app. I'm using sharepoint lists for my datasource.
    So I have a grid calling WorkOrderDetail list that has ProductId column. I want to display on the grid sum of Qty from ReceivingDetail list where ProductId = ThisItem.ProductId.
    this is my code:
    Sum(Filter(ReceivingDetail, ProductId = ThisItem.ProductId), TotalReceivedQty)
    but i got the delegation warning. How can I solve this problem?
    Thank you
    Mike

    • @ShanesCows
      @ShanesCows  9 หลายเดือนก่อน

      Because Sum is not delegable with your data souce, you can't. :( But let me ask you this? How many records does your Filter formula return? If it is less than the delegation limit, then you will be fine. You can learn more about how nested delegable and non-delegable queries behave here. th-cam.com/video/iG8SjWtX1yM/w-d-xo.html