Hi, guys! I am struggling with patching a Sharepoint Customized Forms based on a Sharepoint list, and apparently it's not working the same way as you would do from a normal app with a gallery-source...
I want to patch a person field as array with Blank() values if the person field has been edited and removed (emptied) from the itemvalue-field by clicking on the "Save"-button on the form.
Note: I am successfully able to patch the person array values as "Blank()" without any issues when using a button-object in another app, but I'm having problems with the patch function using the "OnSave"-property from the pre-built Datasource "SharePointIntegration" by using the Save button from Sharepoint forms. How can I use this datasource and the Sharepoint-integrated save-button to patch the person column as empty/isblank()?...
Screenshots below for the steps explaining my problem and what I want to do:
1. I create a new template app (Custom forms based on a template Sharepoint list with a person-field (not people):

2. I then edit the OnSave property for SharePointIntegration

Functions in plain text for this:
SubmitForm(SharePointForm1);
If(IsBlank(SharePointIntegration.Selected.Ansvarlig.DisplayName),
Patch(SharePointIntegration.Selected.Delegated,Defaults('New User Form'),{
Claims:Blank(),
DisplayName:Blank(),
Email:Blank(),
Department:Blank(),
Picture:Blank(),
JobTitle:Blank()
}))
3. Saves, publishes and tries to empty the field and nothing happens:

5. Value is not emptied on the list (this is the problem for me):

Is my functions misplaced or/and do I have to approach it differently when using Sharepoint Forms and the "integrated" Save-button?