cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

How to Autofill a table based on a Text Input that triggers a SQL Query

I have form that needs to take a value via Text Input (autocomplete if possible), and auto fills other fields in the form based on a SQL query. The query joins several tables to get the data. Is that possible, and if not how should I go about collecting that data to use?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate II
Advocate II

Re: How to Autofill a table based on a Text Input that triggers a SQL Query

Thank you for your response. I am not asking how to see the View. I literally meant to use a SQL Query. 

However, I have since figured this out that where I have trouble "joining" tables, i can simply lookup the keys and hide them on the page to use in Lookups for the remaining data. 

 

I now have a solution that allows me to enter a number in a text field, and auto populate other fields in my form based on SQL Data from several tables.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: How to Autofill a table based on a Text Input that triggers a SQL Query

Hi @SharePointAU,

 

If the SQL Query here means the View, then currently this is not available.

There is an idea submitted on this already:

PowerApps must also see SQL Azure Queries, not only Tables

 

PowerApps by now could only work with the actual data table,  if you would like to use the data from Multiple tables, then you need to add all the related tables as data source in PowerApps.

After that, take use of the filter or Lookup function to find the proper data.

Filter, Search, and LookUp function in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Advocate II
Advocate II

Re: How to Autofill a table based on a Text Input that triggers a SQL Query

Thank you for your response. I am not asking how to see the View. I literally meant to use a SQL Query. 

However, I have since figured this out that where I have trouble "joining" tables, i can simply lookup the keys and hide them on the page to use in Lookups for the remaining data. 

 

I now have a solution that allows me to enter a number in a text field, and auto populate other fields in my form based on SQL Data from several tables.

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 (2,259)