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 Apps / Send Data to a Stored ...
Power Apps
Unanswered

Send Data to a Stored Procedure

(0) ShareShare
ReportReport
Posted on by 69

Hey Everybody,

I am creating a PowerApp that loads information into SQL (SSMS).
The PowerApp asks for numerous information from a leader. Once that information has been entered, the leader will press 'Save'.

After that, the data is to pass through a stored procedure and then into a SQL table. I am doing this to avoid duplicate entries, and the stored procedure removes all duplicates.
How can I do this? (The stored procedure has already been created).

 

Thanks

Dan 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Power apps can't invoke a SQL stored procedure, but Power automate can.  The easiest way to accomplish what you are suggesting is to store the information in a collection or variable and pass it to a Power Automate flow using JSON().  Then in the flow you can parse the JSON to retrieve the values and invoke the SQL stored procedure.  This article walks through the basics of calling a SQL stored procedure using a flow from Power Apps.

    Calling a SQL Server Stored Procedure from Power Apps (mssqltips.com)

  • Dpegs22 Profile Picture
    69 on at

    I have a few questions.
    First, is there a way that I can only use PowerApps to avoid placing duplicates into the SQL table? Here, I would avoid the stored procedure all together.
    Second, if I have to use a stored procedure in order to do this, can I avoid using JSON()?

    Thanks

    Dan  

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    1) Yes you can work directly with SQL and avoid duplicates.  How you do that would depend on exactly what your SQL table looks like and what you consider to be a duplicate.

    2) You have to pass the data to the flow in some way.  Using JSON is the most efficient, especially if you want to pass multiple records.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard