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 / Getting data from SQL ...
Power Apps
Unanswered

Getting data from SQL Server table with composite key

(0) ShareShare
ReportReport
Posted on by 24

Hello everyone,

I'm trying to get data from a SQL Server table that has a primary composed key (3 columns). The new app procedure builds the interface correctly but doesn't fetch any data.

I've tried to change the primary key to a single autoincrement ID column and everything works like a charm.

 

Is this behaviour by design? Anyone else experieced this?

 

Thanks,

 

Cris

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi gax700,

     

    What are the column types of the three columns? Do you have entered data for each column?

     

    I am using SQL Server On-Premise, to test this issue, i set a column(column type int) as primary key, then when i create an app based the table, I found that all the data in the table are shown on the app. I can also write back to the table from the app.

     

    Before you change the primary key to a single autoincrement ID column, which column were you using as the primary key?

     

    Best regards,

    Mabel Mao

  • gax700 Profile Picture
    24 on at

    Hi Mabel,

    this is the table definition. No way to show data into the app.

     

     Capture.PNG

     

    Thanks,

    Cris

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard