How to reset a SharePoint column value to blank using Power Automate

3–4 minutes

In Power Automate, setting an already-populated SharePoint list or library field to blank isn’t as simple as leaving the field blank in your flow. Luckily, it’s just a couple extra steps to make it possible.

In this post I’ll cover multiple column types as they’re a bit different.

  • How to set text, date, number, and yes/no column values to blank
  • How to set single choice column values to blank
  • How to reset multi-choice column values to blank
  • How to reset person column values to blank

How to set SharePoint text, date, number, and yes/no column values to blank

The steps in this section will work for these column types:

  • Single line of text
  • Multiline text
  • Date
  • Number
  • Yes/No
  1. Click into the field you want to reset to blank
  2. Select Expression
  3. Type Null in the expression box (not case-sensitive)
  4. Click OK
Adding a Null expression in Power Automate | Click to enlarge

Test your flow and it should reset the field value(s) to blank wherever you used the Null expression.

Showing the fields that were reset using Power Automate | Click to enlarge

How to set SharePoint single choice field values to blank

To set a choice field back to blank (no selection) follow these steps:

  1. Add a step before updating the item that initializes a variable. The step is called Initialize Variable.
  2. Set the variable name to Blank, and the type to String. Do not set a value.
  3. In your update action, set the choice field value to the new variable from dynamic content.
Creating a blank variable in Power Automate | Click to enlarge

Test your flow, and you should see your single choice field reset to no choice.

Result of a Power Automate flow resetting a choice field | Click to enlarge

How to reset SharePoint multi-choice column values to blank

A normal choice column in SharePoint has more options that allow it to be set to multiple choice.

Multiple selection option for a choice field in SharePoint | Click to enlarge

Changing a single-select choice column to a multi-choice field alters how Power Automate resets the field, but it’s still similar to the steps involved for a single choice field.

To set a multiple-choice field back to blank (no selections) follow these steps:

  1. Add a step before updating the item that initializes a variable. The step is called Initialize Variable.
  2. Set the variable name to BlankArray, and the type to Array. Do not set a value.
  3. In your update action, select the T icon next to your multiple-choice field.
  1. Set the multi-choice field value to the new variable from dynamic content.
Power Automate actions resetting a multiple-choice field to blank | Click to enlarge

Test your flow and your multi-choice fields should now reset to blank.

Result of a Power Automate flow resetting multiple-choice fields to blank | Click to enlarge

How to reset SharePoint person column values to blank

Perhaps one of the more complicated column types to reset, a person field takes a bit more work to reset. To accomplish this, we can use an HTTP request. Follow these steps to empty a SharePoint person column’s value.

  1. Add the Send an HTTP request to SharePoint step
  2. Following the screenshot below, set the fields as follows (you must replace all red items with your own values):
    • Site Address (select your site)
    • Method: POST
    • Uri: _api/web/lists/getbytitle(‘YOUR LIST TITLE‘)/items(YOUR ITEM ID FROM DYNAMIC CONTENT)
    • Headers
      • IF-MATCH | *
      • X-HTTP-Method | MERGE
      • Content-Type | application/json;odata=verbose
      • Accept | application/json;odata=verbose
    • Body:
      {
      “__metadata”:{
      “type”:”SP.Data.YOUR_x0020_LIST_x0020_TITLEListItem”
      },
      YOURPERSONFIELDId”:”-1″
      }

Important notes for the Body field

If your list name has a space, replace it with _x0020_ such as Null_x0020_demo.

Field names are different than display names. Even if your field displays with a space (Person field) it is likely Personfield on the backend. You can verify your column’s actual name by going to List settings (gear icon) and selecting your column from the Columns section. Your field’s actual name will be displayed in your browser’s URL.

How your HTTP request should look when finished | Click to enlarge

Test your flow and you’ll find that your person column has been reset.


Discover more from Nate Chamberlain

Subscribe to get the latest posts sent to your email.

14 responses to “How to reset a SharePoint column value to blank using Power Automate”

  1. RiaArceo Avatar
    RiaArceo

    Thank you for this!!! Sooo helpful!

    Question: I can’t seem to get Person field to clear using the HTTP request. I see that you have “list” in both Uri and Body – does this matter if i’m triying to clear a Person filed in a document library rather than a list?

  2. Dimas Avatar
    Dimas

    I got an error response “Invalid JSON. The property name ” is not valid. The name of a property cannot be empty.”

    Any alternatives for the body script?

  3. cherylshah36c0e18d5b Avatar
    cherylshah36c0e18d5b

    Thank you so much for this very helpful post! For anyone who is following this but has a person field set to allow multiple selections, here is the format for the body of the Send HTTP Request to SharePoint action that worked for me:

    {
    “__metadata”: {
    “type”: “SP.Data.
    YourListName
    ListItem”
    },

    YourColumnInternalName
    Id”: {
    “results”: []
    }
    }

  4. Pat Avatar
    Pat

    I don’t know why after using this I can’t input any data using grid?

  5. Bill Birkett Avatar
    Bill Birkett

    Hi Nate: Thanks for this site. I have tried your solution for “How to reset SharePoint person column values to blank.” I keep throwing a JSON error

    “Invalid JSON. More than one value was found at the root of the JSON content. JSON content can only have one value at the root level, which is an array, an object or a primitive value.”

    The problem is coming from the Body script. It reads as follows:

    {
    “__metadata”:{
    “type”:”SP.Data.MatterChatterListItem”
    },
    “SendMessageToLeadId”:”-1″}
    }

    My people picker field is: “SendMessageToLead”.
    The list is called: “MatterChatter”

    I have looked at other sites that try to solve this same error but those do not offer solutions that work. Any thoughts? I appreciate your time.

    1. e6matt Avatar
      e6matt

      You have an extra curly brace “}” after the “-1” that shouldn’t be there, try removing it

  6. Scott Olson Avatar
    Scott Olson

    Good morning! Thank you for this Nate! I second what mahesh mentioned: multi line text fields no longer will reset when using the expression “null” nor if a blank variable is used. I am trying to find a solution for this and will respond here if I do.

    1. Scott Olson Avatar
      Scott Olson

      I did not find a solution so I just changed to a single line text field which isn’t as good, but is ok for my application.

  7. F Avatar
    F

    You can use Compose action with White space value and call that compose action in update item.

  8. Patrick Avatar
    Patrick

    FYI in case anyone is having an issue with this after applying these fixes…
    The New Designer experience (that launched in late 2023) was causing an issue for me.
    You’ll have to go to the old experience, and retype in ‘null’ to get it to work again 🙂

    1. e6matt Avatar
      e6matt

      Good catch! I wasted a day rebuilding my flow because a conditional expression that was previously passing “null” suddenly started passing an empty string last week, causing an error in a SharePoint list People field lookup. I just went back to the old flow, flipped to the old designer, and it works again. Very frustrating.

  9. Seequest Avatar
    Seequest

    What about currency?

  10. Lauren Avatar
    Lauren

    This was very helpful but I had to make one change. Instead of “SP.Data.YOUR_x0020_LIST_x0020_TITLEListItem” I used “SP.Data.YOUR_x0020_LIST_x0020_TITLEItem” (Item not ListItem).

  11. mahesh Avatar
    mahesh

    Null expression not making multi line text field blank

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Nate Chamberlain

Subscribe now to keep reading and get access to the full archive.

Continue reading