Premium Only Content

Let Users Know How Many Records are in a Gallery's full recordset
PowerApps galleries load records in chunks of 100, so a user is left wondering, "Is that everything?"
When Delegation Limits also come into play, the problem can be even more difficult. If the gallery contains exactly 500, or 2,000 records, is that all there are, or is that a result of delegation?
I solved the dilemma with a PowerApps flow and a Stored Procedure in SQL Server.
Here's the SQL from the Stored Proc. The rest of the code is revealed in the video.
USE [NameOfYourDatabaseGoesHere]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE OR ALTER PROCEDURE [dbo].[RecordCount]
@SearchTerm varchar(10) = ''
AS
BEGIN
DECLARE @Recordcount int
SELECT @Recordcount = count(*) FROM dbo.Employees
WHERE LastName like '%' + @SearchTerm + '%'
OR FirstName like '%' + @SearchTerm + '%'
RETURN @Recordcount
END
GO
Links to downloads:
https://www.gpcdata.com/downloads/Employees2K7.zip
https://www.gpcdata.com/downloads/Employeesbacpac.zip
-
LIVE
Wendy Bell Radio
4 hours agoNothing To See Here
6,810 watching -
LIVE
LFA TV
12 hours agoLFA TV ALL DAY STREAM - TUESDAY 7/8/25
5,847 watching -
1:04:24
Game On!
13 hours ago $1.73 earnedThe NFL is CONSPIRING to Keep The Kansas City Chiefs OUT OF THE Playoffs!
9.36K4 -
LIVE
AP4Liberty
12 hours agoThey Said the Epstein List Existed—Then THIS Happened in the White House
313 watching -
LIVE
PudgeTV
10 hours ago🟠Witcher 3: The Wild Hunt | Day 6 - This Game is HARD!!!
437 watching -
19:34
BlackBeltBarrister
20 hours ago $1.82 earnedWhy People Say it's Two Tier Policing
9.01K12 -
13:14
Sugar Spun Run
1 day ago $1.49 earnedFrench Toast Cookies
10.4K6 -
LIVE
FyrBorne
3 hours ago🔴Warzone M&K Sniping: Sharp Minds Cut Deeper Than Dull Swords
135 watching -
18:27
Machete Gaming
1 day ago $1.77 earnedThe FIFA Everyone Hated… But It BLEW My Mind
19K1 -
39:53
pewculture
1 day ago $0.35 earnedThe Pew Culture Podcast #22 - MILE 22
10.3K