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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating SharePoint wi...
Power Apps
Unanswered

Updating SharePoint with a Blank Person record does not update the SharePoint list

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have an issue that seems like it should be rather common to fix.  I am using SharePoint as my data source.  The scenario is, basically when a person no longer has an assignment, they need to be removed and that should update in SharePoint.

 

My issue is that the user can be blanked out in the default combo box control in PowerApps but when the record updates the change to a null value does not propagate back to SharePoint.

 

To get around this issue I have tried many things and I will describe the one that seems like it should by all means work.

1. I have created a Blank Person record variable in my PowerApp at the initial app level

Set(BlankPerson,{ Claims:Blank(),
 DisplayName:Blank(),
 Email:Blank(),
 Department:Blank(),
 Picture:Blank(),
 JobTitle:Blank()});

2. I then check for a change to blank in the default combo box control in the On Change property.

If(IsBlank(ProjectManagerDataCardValue.Selected.DisplayName),
 UpdateIf(MyList, ID = varRecord.ID,
 {'Project Manager': BlankPerson}
);

 

I run the code and X out the assigned Project Manager.  The code runs successfully, which I know because I set a variable in the next line of code in the block and I display that value which does change.  So I know it runs well.  There are no errors registered.

 

I refresh my page and the old Project Manager value is still showing.  When I check SharePoint, no change has been applied.

 

Am I approaching this incorrectly?  Or is this a known bug?  Or does anyone know how to make this change reflect in SharePoint after being removed in PowerApps?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    Can you please try to replace this code...

    {'Project Manager': BlankPerson}

     

    ...with this code?  Blank() is typically how you would PATCH an empty value.

    {'Project Manager': Blank()}

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on at

    I have tried that before and I just replaced my blank record with the Blank() function again and tried it. And still no change in SharePoint.  I am trying to execute this with the On Change event.

    If(IsBlank(ProjectManagerHeaderDataCardValue.Selected.DisplayName),
     UpdateIf('Proposal Intake', ID = varRecord.ID,
    	{'Project Manager': Blank()}
    );

    FYI, I have also tried to use the Patch command and as you see the UpdateIf command and neither seem to be able to update SharePoint.  Since Project Manager is a complex data type (Person or Group set to a single value) I also tied setting this via Patch with a complex field update.

    Patch(
    	'MyList',
    	varRecord,
    	{'Project Manager': {
    	'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    		Claims:Blank(),
    		DisplayName:Blank(),
    		Email:Blank(),
    		Department:Blank(),
    		Picture:Blank(),
    		JobTitle:Blank()
    		}
    	}
    )

     So any idea on how to update Sharepoint Person field from PowerApps with a blank or null value?

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Make sure you have Formula Level Error Management on in your advanced settings - otherwise you will not be able to change to a blank person.

  • Community Power Platform Member Profile Picture
    on at

    Thanks so much!  This has really fixed my issue and gotten me unblocked.  You Rock!!!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard