For an edit form in a list I'm trying to replace an infopad form by a powerapp form.
All is fine except that I'm missing records in the query result.
It is all quite simple, I just need the records where the 'Applicant' person matches the person in a combo box.
So in the app OnStart I say this:
Collect(
oldlst,
Filter(
OldListDS,
Applicant.Email = Email
)
);
Where Email is the Trim( User().Email ) .
Nothing complicated, and I expected 2 records in the returned collection, however I only get one.
I believe this is because somehow the query is done by powerapps, rather than just asking the right items from sharepoint, it gets all the stuff I don't need, and then drops 99,9%.
The list has about 2300 entries and I'm sure my second record is in the last 300, not in the 2000 records that powerapp happily pulls down.
In other words it is somehow not delegating the query to sharepoint.
How can I stop powerapps from doing this?
What can I do to make it get just the handful of records I need.
I read that 'complicated' queries can't be delegated but I have not yet seen any limits related to 'person' type of variables.
Replacing the Email by a few other peoples email give the number of records based on the number of entries in the oldest 2000 records.
Since I'm mainly interested in the last record, getting the last 2000 records, instead of the first, would also solve my issue.
Thanks for any enlightenment.
Michel