web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Stored Procedure...
Power Apps
Unanswered

Using Stored Procedure to populate Collection But only getting "?"

(1) ShareShare
ReportReport
Posted on by 61
So I was able to finally successfully get a table to return from a stored procedure using PowerApps by referencing this question
https://community.powerplatform.com/forums/thread/details/?threadid=cc17d0dc-618d-4a61-be00-2e56a1cb0c4d

However, when use this code: (sorry about having to rename things, but in general you can see the structure)
ClearCollect(
    colRedactedName,
    Table(
        RedactedSource.dboRedactedStoredProcedureName(
            {
                Var1: Blank(),
                Var2: Blank(),
                Var3: Blank(),
                Var4: Blank(),
                Var5: Blank(),
                Var6: Blank(),
                Var7: Blank(),
                Var8: Blank(),
                Var9: Blank(),
                Var10: Blank(),
                Var11: Blank(),
                Var12: Blank(),
                Var13: Blank(),
                Var14: Blank(),
                Var15: Blank()
            }
        ).ResultSets.Table1
    )
)
This is what I get when I look at the collection
When I do that same stored procedure in MS SSMS, I get the exact same number of rows, so it does appear to be sorta working, but I don't understand why each record comes back as a question mark. Any guess what I'm doing wrong?
Categories:
I have the same question (0)
  • Jsunnb Profile Picture
    61 on at
    I think I stumbled across the answer as I was trying everything. Basically, on my gallery, I need to use ThisItem.Values.Var1. Its just that the Var1 won't autofill, so you have to now how your stored procedure is returning. Honestly, that is fine for me since I also made the stored procedure, but I could see that being difficult if there were someone making it for you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard