web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to empty person...
Power Apps
Answered

Unable to empty person field in PowerApps for Sharepoint forms based on a list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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):

GakinImara_1-1619468895187.png

 

2. I then edit the OnSave property for SharePointIntegration 

 

GakinImara_2-1619475576764.png

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:

GakinImara_3-1619475941029.png

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

GakinImara_0-1619476366307.png

 

 

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

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    In your Advanced Settings of the app, set the Formula-Level Error Management to be on.

    Without it you cannot set a field to blank.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks!... Haha... can't believe this worked.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Of course it worked - would I lead you wrong??  🤣🤣🤣

     

    Glad it helped!

  • VswaldBI Profile Picture
    9 on at

    Hi, Randy, I have to admit that I doubted your method as it is really simple, but how wrong I was, that worked like magic and saved so much time for me. Thanks so much!!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard