PowerApps – 500 Record Limit, Filter SharePoint LookUp Column with no Delegation Warning
On 3 minutesIf you have not read the series introduction, I will highly recommend that you do. It discussed the three factors that causes delegation warnings.
In this post, I will explain how to delegate the filter function to SharePoint on the LookUp column.
Note: What I will discuss here applies to the PowerApps LookUp
function as well.
The LookUp column is of the complex type. Delegation of complex types in SharePoint is done by deferring the decision for delegation to the subfield involved. For LookUp column, the Value is the only delegable subfield in this data type. The Id subfield is not delegable.
Within the Filter functions, the only delegable operator supported for the delegable subfield (Value) is =
. This is because, this subfield is Text
type, which has the =
operator as the only delegable operator.
Expressions in the filter functions can be joined with And
or Or
, and they will be delegable to SharePoint.
If you want to compare the subfields, do so using constant values that are the same across all records, such as control properties and global and context variables.
With all this information, let’s look at some examples.
===== Useful Information =====
- Set(UserEmail,User().Email)
- Set(MyRecord,{Id:10})
- MyList: SharePoint List
Query | Delegable? |
Filter(MyList,LookUp.Value = User().Email) | |
Filter(MyList, LookUp.Value = UserEmail) | |
Filter(MyList, LookUp.Value = “name@example.com”) | |
Filter(MyList, LookUp.Value <> UserEmail) | |
Filter(MyList, LookUp.Value <> “name@example.com” ) | |
Filter(MyList, LookUp.Id = 10) |
References
Other posts in this series
- PowerApps – 500 Record Limit, How to Overcome Delegation Warning
- PowerApps – 500 Record Limit, Filter SharePoint Person/Group Column with no Delegation Warning
- PowerApps – 500 Record Limit, Filter SharePoint LookUp Column with no Delegation Warning
Other posts you might be interested in
- PowerApps – 500 Record Limit, Filter SharePoint Person/Group Column with no Delegation Warning
- Making Office 365 Work for you: Monitoring ATMs
- How to enable missing apps in Modern Communication SharePoint Site
- PowerApps Error – The specified column is generated by the server and can’t be specified
- Enable or Disable the Link to return to Classic SharePoint