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 / Write data to Azure AQ...
Power Apps
Unanswered

Write data to Azure AQL Database table via power apps form

(0) ShareShare
ReportReport
Posted on by 213

Hello All, I am trying to use this method to write data to my Azure SQL table. 

 

https://www.mssqltips.com/sqlservertip/7032/power-apps-read-write-data-sql-server-database-azure/

 

I have created the connection to my SQL database in power apps using Azure AD integrated credentials. I then created the power automate query below as instructed in the guide:

JWPowder_0-1642171459652.png

However, when I try to insert that DataFlow into my app I get an error, eventhough the dataflow is associated with the button I am trying to use to trigger it. The SQL connection was added to my app so I'm really unsure what the hangup is. 

 

JWPowder_1-1642171537591.png

JWPowder_2-1642171566137.png

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    What is the error message you are getting?

  • JWPowder Profile Picture
    213 on at

    @Pstork1 ,

     

    JWPowder_0-1642171869955.png

     

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    It looks like you added the Ask in PowerApps content to the SQL query after you added the flow to the button in Power Apps.  Do the following:

    1) Copy your current onSelect in Power Apps

    2) Remove the flow from the Power App OnSelect

    3) Re-add the flow

    4) Paste your original OnSelect code back into place.

     

    When you add a flow to a Power App it takes a snapshot of the flow's input and output parameters.  If you change the flow later you need to re-add it to Power Apps to update that snapshot.  That's why you are getting an error saying its not expecting any input parameters.

     

  • JWPowder Profile Picture
    213 on at

    I have done this several times with no success. 

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    Try replacing the Power Apps trigger in the flow with the Power Apps v2 trigger.  Using that you can specify the input parameters for the flow in the trigger.  

  • JWPowder Profile Picture
    213 on at

    Just tried that as well and I am still getting the same error. 

     

    JWPowder_0-1642176710255.png

    JWPowder_1-1642176733311.png

    Set(
     feedback,
     'PowerAppV2->ExecuteQuery'.Run(
     Title.SelectedText,
     Status1.SelectedText,
     Operator.Text,
     Start_Time.SelectedDate
    ));
    If(
     !IsBlank(feedback.statuscode),
     Notify("Data Input Unsuccessful", NotificationType.Error),
     Notify("Data Input Successful", NotificationType.Success))

     

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    I don't know why its not working.  But the error is still suggesting that it is working off the wrong definition of the flow since it claims there are no input parameters.  That should have cleared up if you removed and re-added the flow.  I don't know what else to suggest.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard