cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,944)