PowerApps Delegation

    Delegation is a very important concept that you have to understand, especially when you will be working with large data sets in PowerApps. First, let’s know that “delegate” means to assign tasks to someone else.(Here power app will delegate data processing to data source)

What is PowerApps Delegation?

    In PowerApps when you are working with the data sources (Dataverse(CDS), SQL, SharePoint, etc…), the data processing tasks are assigned to data sources rather than done by PowerApps itself. This is called PowerApps Delegations.

Delegable Data Sources:

  • Delegable data sources mean the data sources that process data logic in a similar to PowerApps does.
  • Not all the data sources support all the functions of PowerApps.
  • Delegable data sources:
    • Common Data Service (CDS) also called as Dataverse
    • SQL Server
    • SharePont

Delegable functions

  • Not Delegable: When we working with large data some function will not work(not Delegable), it will give you a warning sign

  • Delegable: There are only a few functions that are Delegable(which will work with large data)
  • Work with not Delegable function: You need to bring the data in PowerApps and then use PowerApps functions on the data.
  • Check this Link for Delegable & Non Delegable functions

Limit of Non-Delegable records:

  • The default limit for Non-Delegable record is 500
  • You can extend the default limit to a maximum of 2000 by following instructions.
    • Open your app
    • Go to File Tab >> App settings
    • Click on Advanced Settings.
    • You can set the value: Data row limit for non-delegable queries

Delegations general workarounds:

  • The quickest and Not-Recommended fix: To increase the limit of the Non-Delegable records from the app settings.
  • Use all the possible Delegable functions: This is a kind of POC on what all the Delegable functions you can use in your application.
  • Choose your Data Source wisely: If you have more than 5000 records, I would prefer SQL Server or Common Data Service (CDS) because SharePoint has its own limitation of searching in more than 5000 records, in that case, you might need to index the SharePoint column which is being searched from PowerApps

Please refer this link  Link2 for more details

Comments

Popular posts from this blog

Upload Single/Multiple file by using the REST API and jQuery SharePoint 2013

A type named 'SP.Data. could not be resolved by the model error

Add content type to SharePoint List/Library using REST API