cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Super basic question - syntax for submitting a new record and syntax for updating a record

Hello PowerApp Community,

 

I am actually able to submit a new record successfully with this syntax:

 

SubmitForm(Form1_1);Navigate('Search for Client', ScreenTransition.None)

 

I am having trouble with saving changes to an existing record, can you help me with the correct syntax?

 

Patch('Client Profile',Form1.Updates); Gallery3.Selected; Refresh('Client Profile');Navigate('Client Profile and List of Workouts')

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Super basic question - syntax for submitting a new record and syntax for updating a record

You can use the same SubmitForm function with the name of the form you are using to update records. If there is a need to use Patch, you can follow this syntax:

Patch(Datasource, RecordReference, {Column1: Value1, Column1: Value2})

Let me know if this doesn't work.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Super basic question - syntax for submitting a new record and syntax for updating a record

You can use the same SubmitForm function with the name of the form you are using to update records. If there is a need to use Patch, you can follow this syntax:

Patch(Datasource, RecordReference, {Column1: Value1, Column1: Value2})

Let me know if this doesn't work.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

Highlighted
Super User
Super User

Re: Super basic question - syntax for submitting a new record and syntax for updating a record

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,001)