I had to wrap the stored procedure in Table() and add ".ResultsSets.Table1" as it was originally returning a single record as "Data Type: Record" when hovered over. So now it looks like this:
ClearCollect(
colSearchResults,
Table(
ConnName.ppspSearchProgs(
{
progName:(txtProgName.Text)
}
).ResultSets.Table1
)
)
Then once it was run, the first (and in this testing example only field), showed up and the DATA TABLE field TEXT property was changed to
ThisItem.Value.[FieldName]
For us: ThisItem.Value.Prog
when calling SQL stored procedures from Power Apps. If your proc queries a schema-defined (physical) table - doing things like filtering, sorting or pagination - Power Apps receives a fully typed table with the original column metadata. However, if you build your result set in a temporary table instead, Power Apps only gets the raw data as untyped objects, since the temp-table schema isn’t sent back.
please check this article: View results in SQL Server - Power Apps | Microsoft Learn
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473