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'
}
)
Can you specify why you are wanting to use Patch over SubmitForm?
I would like to use an if statement and do 2 differant things depent on the comboboxPersoon
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.
User | Count |
---|---|
261 | |
110 | |
97 | |
53 | |
39 |