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

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
Super User II
Super User II

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
Super User II
Super User II

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

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (9,326)