cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
trishmalloy 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
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
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

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,061)