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 / Submit data in the sql...
Power Apps
Unanswered

Submit data in the sql table from power app

(0) ShareShare
ReportReport
Posted on by 18

I want to submit data to the same table. I have attached the photos of the sql table and my power app screen. What formula should I write in the submit button?

Screenshot 2023-11-09 123732.png
image (1).png
Categories:
  • Shaheer Ahmad Profile Picture
    2,202 Moderator on at

    Why dont you simply utilize a form control and use the SubmitForm function on the submit button?

  • Shruti_727 Profile Picture
    18 on at

    I don't want to use the form because of the UI restrictions.

  • Shaheer Ahmad Profile Picture
    2,202 Moderator on at

    Formula should be something like this:

    Patch(
     YouDataSourceName,
     Defaults(YouDataSourceName),
     {
     SenderEmailAddress: TextInputforEmail.Text
     // Repeat same for every field
     }
    )
  • timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    @Shruti_727 

    The posts from @ShaheerAhmad are the correct answers.

    I would favour the first approach of using a form and calling SubmitForm. From what I can see, there's nothing complex enough about your UI layout that should prevent you from using a form. By using a form, you'll gain the advantage of built in data type validation, the ability to more easily use the form for adding and updating records, so it'll be preferable to calling Patch.

     

    timl_0-1699611922387.png

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard