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
-
20:52
Exploring With Nug
1 hour ago $6.15 earnedTwo Missing People, One Missing Truck — What’s in the River?
33.3K1 -
DVR
vivafrei
5 hours agoBREAKING: Jan. 6 Pipe Bomber Prosecutor is the SAME ONE Who Prosecuted Enrique Tarrio?
109K34 -
35:16
Tactical Advisor
2 hours agoNew Pivoting Rifle for Backpacks | Vault Room Live Stream 048
15.3K -
LIVE
Amish Zaku
6 hours agoRumble Spartans December Event
59 watching -
LIVE
OhHiMark1776
5 days ago🟢12-06-25 ||||| HMR. 21: King of the Hill ||||| Halo MCC (2019)
108 watching -
20:08
MYLUNCHBREAK CHANNEL PAGE
9 hours agoThe Field Museum is From Another Timeline
62.4K17 -
LIVE
BigTallRedneck
2 hours agoRUMBLE SPARTANS HALO NIGHT
136 watching -
LIVE
AirCondaTv Gaming
2 hours ago $0.29 earnedHalo: The Master Chief Collection - Conda a Clause is Spreading some Plasma Holiday Cheer (Collab)
53 watching -
3:22:01
SpartakusLIVE
5 hours agoSOLOS on ARC Raiders || WZ Stream LATER
130K2 -
LIVE
GritsGG
7 hours agoBO7 Warzone Is Here! Win Streaking! New Leaderboard?
156 watching