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 / textboxes and insertin...
Power Apps
Answered

textboxes and inserting data using patch with sql server

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Patch('[dbo].[t_sst_AccessList]', Defaults('[dbo].[t_sst_AccessList]',{Name: TextInput4.Text, eMail: TextInput5.Text})

 

I'm trying to use Patch with 2 textboxes on a form and insert record into sql server via a button ?

 

Dave 

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 

    You appear to be a missing a single bracket.

     

    Patch('[dbo].[t_sst_AccessList]', Defaults('[dbo].[t_sst_AccessList]'),{Name: TextInput4.Text, eMail: TextInput5.Text})

     

    If this does not solve the issue can you please tell me what is happening when you attempt to PATCH?  Does a new record get created?  Is data missing?

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

     

  • eka24 Profile Picture
    20,925 on at
    Put your formula on the Onselect of your button
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    missing bracket and thanks !!

     

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard