Hi,
Quite new to this; came from... COBOL. Sorry for that. Thanks in advance.
If there are not many records, this works fine. Once we get a relevant set of data, it won't work.
If(
CountRows(
Filter(
Vehicles;
LicensePlate = DataCardValue17.Text
)
);
SubmitForm(EditForm1);;
ResetForm(Form2);
How can we rewrite it to work with any amount of records?
Best.
Hi @selhd00,
Actually, the CountRows() function is non-delegable.
If you want to use the CountRows() function to work with any amount of records, I am afraid there is no way to achieve this in Power Apps currently.
As an alternative solution, I think you could combine with a flow to count records:
length(body('Get_items')?['value'])
Can you be more specific about what you mean when you say, "it won't work"?
Are you getting a query delegation warning in the app designer UI?
WarrenBelz
75
Most Valuable Professional
mmbr1606
51
Super User 2025 Season 1
MS.Ragavendar
36