Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Jsunnb Profile Picture
    61 on at
    Using Stored Procedure to populate Collection But only getting "?"
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard