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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to manipulate the ...
Power Pages
Answered

How to manipulate the data in SQL Database directly from Power Pages

(2) ShareShare
ReportReport
Posted on by 19

Hello,

Is there any way to have a Power Pages app working with the data (read and write) in some DB directly (e.g., Azure SQL db), w/o replicating in Dataverse? Seems there is no such functionality.

 

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @orangealias 

    It is possible to interact with SQL cloud database via Virtual Tables. Official link below 

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/get-started-ve 

     

     

     

     

    FYI. Dataverse is more than SQL database which include amazing features such as File attachments, images, etc..

    Hope it helps. 

     

    ------------

     

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

     

     

  • orangealias Profile Picture
    19 on at

    Hi @ragavanrajan , 

    Thank you, I agree, in many cases we may use virtual tables in Dataverse to work with DB.

     

    But it looks like we cannot connect to the DB directly from Pages, without Dataverse, which is pity. 

    Regards,

    A.

     

     

     

  • Verified answer
    PaulJSwider Profile Picture
    152 on at

    You can connect to a SQL Server database using plugins and C#. Also, if you can connect to your SQL data using Odata, you can use WebAPI.

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/tools/devtools-create-plugin

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    hi @orangealias 

    You can manipulate data via Portals API: Overview of portals Web API - Power Apps | Microsoft Docs

    Is there any reason as to why you want to do it via SQL? 

     

  • Verified answer
    Fubar Profile Picture
    8,350 Super User 2025 Season 2 on at

    Whilst the data source is currently DataVerse (or Virtual Tables), if you have some data that you need to access from the Portal and doing so via Ajax would be appropriate then you could look at use OAuth 2.0 implicit grant flow  (client-side calls to external APIs and secure them using OAuth implicit grant flow) https://docs.microsoft.com/en-us/power-apps/maker/portals/oauth-implicit-grant-flow  there is a link towards the bottom of the page to some sample code on Github.

     

    Note: they have announced are going to deprecate GET (think it was for obtaining a token) and so you will need to use POST.

  • orangealias Profile Picture
    19 on at

    Thank you all, we will stick to the external Api calls from our portal to the cloud db.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard