cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jwi
Frequent Visitor

Azure, without primary key in child table not possible to add data

Hi,

I am a beginner to powerapps and ssms, hopefully someone can help me Smiley Happy

If I do not add a primary key to my child table in ssms, the "plus" data icon is not visible:

Knipsel.JPG

 

However, when I add a primay key, the 'plus' icon is visible.

As I do not want to add data to the primay key field (which is now mandatory), what do I have to do?

 

Thanks a lot for your answer!

 

John

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Azure, without primary key in child table not possible to add data

Hi John,

For the SQL Server connector to connect to a table, it is a mandatory requirement for the table to have a primary key.

If it's just the case that you don't want the user to enter a primary key value in your form, you can an int column to your table and set the Identity property to true. This will create a server generated, auto-incrementing primary key value in your table.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Azure, without primary key in child table not possible to add data

Hi John,

For the SQL Server connector to connect to a table, it is a mandatory requirement for the table to have a primary key.

If it's just the case that you don't want the user to enter a primary key value in your form, you can an int column to your table and set the Identity property to true. This will create a server generated, auto-incrementing primary key value in your table.

View solution in original post

Highlighted
jwi
Frequent Visitor

Re: Azure, without primary key in child table not possible to add data

Good day, thanks for your advise!

Works perfect.

John

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (8,792)