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 / Insert data in SQL tab...
Power Apps
Unanswered

Insert data in SQL tables without Form

(0) ShareShare
ReportReport
Posted on by 3

Hi everyone ... Then I have a problem. I have to create an application that takes data from different databases (MSSQL) and send this data to new tables in another DB (MSSQL). How can this be done without the form? I tried to do it with the Patch function but it gives me an error.These data are all taken from different databases and do not fit into a form. And I would like to pass them to a different table from where I took them.Someone can help me. ThanksCattura.PNG

I have the same question (0)
  • MagnusGöransson Profile Picture
    424 on at

    Hello,

     

    The Patch function is the way to go. What error did you get?

     

    You need to have a primary key in your table to get Patch to work.

  • Dumitru Profile Picture
    3 on at

    The name is not valid. Identifier not recognized.

    This is my empty table.where I want to transfer the dataThis is my empty table.where I want to transfer the data

    ERROR: The name is not valid. Identifier not recognizedERROR: The name is not valid. Identifier not recognized

    Thanks!!!

  • v-yuxima-msft Profile Picture
    on at

    Hi @Dumitru 

     

    Could you please share more of your dropdown control's formula expression?

    Do you want to patch the Dropdown selected value to your SQL table?

    More information:

    function-patch

     

    For example I test as next:

    Dropdown2.Items=["m","n","o","p"]

    Button1.OnSelect=Patch('[dbo].[Tab_2019Test1]',Defaults('[dbo].[Tab_2019Test1]'),{ID:Value(TextInput1.Text),Nam:Dropdown2.Selected.Value})

     

    (the green color ones are sql table name,control column name on my side, you can change to yours on your side,ID is the PK in my sql table)

     

    Button.PNG

     

    patch.gif

     

    Best Regards.

    Yumia

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard