cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Samny_98
Helper IV
Helper IV

Use Azure SQL Database to make query on Dataverse datas and display these datas on PowerApps

Hello all,

 

I would know if I can use Azure SQL Database or something else except SQL Server Management Studio to make queries on Dataverse datas and display the datas on PowerApps canvas ?

 

Many greetings.

 

Samuel.

8 REPLIES 8
dpoggemann
Super User
Super User

Hi @Samny_98 ,

 

I am not really sure what you are asking here, hopefully you can clarify.  You can create a connection in a Canvas Based Power App to Dataverse directly and query / show / edit information using galleries, forms, etc.  Can you clarify more of what you are asking as this is supported directly already.

 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Hi @dpoggemann 

 

My aim : 

  • make Query SQL on a Dataverse table ( ex: SELECT *  FROM Table_Weekends WHERE Company = "Microsoft"). Table_Weekends is a Dataverse table on Azure SQL Database if it is possible.
  • display the datas corresponding to the result of my query on a gallery/dataTable in Power Apps.

Many greetings.

 

Samuel.

 

 

dpoggemann
Super User
Super User

Hi @Samny_98 ,

 

You mention "Table_Weekends is a Dataverse table on Azure SQL Database if it is possible".   When you create a Dataverse environment and you would create your table like "Weekends" in the Dataverse set of tables that exist in that Dataverse environment it is actually storing this in Azure SQL behind the scenes but this is transparent to you as this is a Software-as-a-Service environment where Microsoft could actually change this if desired and it would not impact you...

 

In Canvas Apps you can connect to a the Dataverse tables directly.  As an example, after you create your "Weekends" table in Dataverse you could choose to create a new Power App from the Home page with the "Start From" and select Dataverse.  This will take you through a wizard to connect to a Dataverse table and then it will create a fully functional create-read-update-delete Power App for that table.  You could use this to see how the Filter / Search capabilities work for your limiting to see Company of Microsoft, etc.    

Below is an example of the App it created for me when I did this against the Accounts table in Dataverse...

Screen Shot 2022-04-07 at 5.47.08 AM.png

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

@dpoggemann 

 

Thanks but I know this (connect a Dataverse directly and use formulas on it).

I would like if it is possible : 

  • firstly, make an SQL query (if it is possible without using SQL Server to log on )  directly on my Dataverse tables 
  • secondly, display the results of my table directly on my app thanks to a connector SQL or something like that.

Is Azure SQL  Datable can enable me to make SQL Query on my Dataverse tables without using SQL Server Management Studio  please ?

 

dpoggemann
Super User
Super User

Hi @Samny_98 ,

Hopefully someone else has an idea on what you are asking here as I am not understanding the approach.  Sorry my answers didn't help you.

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

@dpoggemann  

My goal is to find a solution in order to build an app.

If I click to one line of my gallery (1st screen) , I would access to another gallery/dataTable concerning the datas of one table (2nd screen).  Example : click on the 1st line -> access to the datas of my 1st table, click on the 2nd line -> access to the datas of my 2nd table...

 

In the first screen, I would have also the informations on a field of my table  with a counter (example : if we have 3 times in my second gallery (2nd screen)  the field Status = "New", I'd have a label "New" and below, the number 3 and so on..)

I tried to do this concept with formulas but I have some limits especially if I create a new  record  which will be  inserted to my first gallery (1st screen), I won't have the label "New" with a counter automatically.

 

That's why, I try to use SQL request to realize the application.

dpoggemann
Super User
Super User

Hi @Samny_98 ,

 

You can utilize relationships in Dataverse and utilize grids in Power Apps to accomplish.  Check out this video which I hope can provide you more strategy to this.

https://youtu.be/7fj87TAaTvw 

 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Thanks !

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (5,274)