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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (37,230)