cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dreamsat
Helper III
Helper III

How to convert the SubmitForm command to a patch?

I created a new PowerApp and used the SharePoint template. In this template you will have 3 screens/forms. One of the screens/forms is the edit screen/form. In this screen/form there is a save button. On this save button there is an onSelect with the SubmitForm command. I would like to use here the patch do my own logic.

 

My form is showing 3 SharePoint list columns:

 

Datum (Type: Date)

Persoon (Type: People or Group)

ExternePersoon (Type: Single line of text)

 

How do I need to use my patch? I did try this, but it is not working:

 

Patch(
CoronaWerkplekRooster,
{ID: ItemID},
{
Datum: Datum_DataCard2,
Persoon: Persoon_DataCard2,
'Externe persoon': 'Externe persoon_DataCard2'
}
)

 

patch button.png

3 REPLIES 3
RandyHayes
Super User III
Super User III

@dreamsat 

Can you specify why you are wanting to use Patch over SubmitForm?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

I would like to use an if statement and do 2 differant things depent on the comboboxPersoon

@dreamsat 

I am not sure of what your details are on the need you have, but yes this is all very possible. 

I would recommend using the SubmitForm as you are working with a form and adjust the Update property of the datacard for the field you want to base on a condition.

If you can supply more details or information, perhaps I could provide more solution for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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 (20,104)