web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Autofill a tabl...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 76

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?

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    SharePointAU Profile Picture
    76 on at

    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.

  • ShockWave Profile Picture
    10 on at

    @SharePointAU can you share your solution?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard