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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard