cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Power apps communication with SQL and reading column types, is not null etc.

I have a question regarding how Power apps communicates to SQL database, If I were to submit a new form, which would add a row to the SQL database, is Power apps able to read from the SQL database to see which fields are 'not null' and therefore compulsory fields. And therefore can Power apps be configured to pick up this and tell the user that the field is compulsory, and only allow the user to submit if the fields are all filled in correctly. I want this to dynamically pick up from the information in the SQL database and not configured on the power apps front end Many thanks for your help Jese
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Power apps communication with SQL and reading column types, is not null etc.

Hi Jese,

 

When we create a form against a SQL table, PowerApps automatically adds required field validation for fields that are set 'not null'. In the screenshot beneath, we can see how PowerApps adds the associated validation logic, and the * symbol against the Firstname field (this is set to not null in the database).

 

image.png

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Power apps communication with SQL and reading column types, is not null etc.

Hi Jese,

 

When we create a form against a SQL table, PowerApps automatically adds required field validation for fields that are set 'not null'. In the screenshot beneath, we can see how PowerApps adds the associated validation logic, and the * symbol against the Firstname field (this is set to not null in the database).

 

image.png

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

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 (7,516)