Small Tips and Tricks : Power Automate – Removing value of column of type “single value person” using “Send an HTTP request to SharePoint” action

Power Automate - flow for updating single value person column using "Send an HTTP request to SharePoint" action - Updating single value person column to null
Power Automate - flow for updating single value person column using "Send an HTTP request to SharePoint" action - Updating single value person column to null

Hi All,

Greetings for the day !!!

New short tip again related to Power Automate.

Tip : Removing value of column of type “single value person” using “Send an HTTP request to SharePoint” action

Background :

  • One of my team member was trying to update list field of type “single value person”, we need to remove the value means making it empty. Tried bit but getting an error.

So small poc / demo

Details :

  • Create simple list “UpdatePerson” list with following columns
    • Title – Single line of text
    • Reviewer – Person or Group
fig : SharePoint list
fig : SharePoint list
  • Created instant flow “Demo-UpdateUserColumn” with trigger “manually trigger a flow
  • Added action “Send an HTTP request to SharePoint” to have POST request to update person column
fig : Power Automat - Instant flow - with manually trigger
fig : Power Automat – Instant flow – with manually trigger
  • Following are the values for “Send an HTTP request to SharePoint” action
    • Site Address – site where our list of which we need to update the items
    • Method – POST
    • Uri – /_api/web/lists/getbytitle(‘UpdatePerson’)/items(1)
    • Headers
      • content-type – application/json;
      • accept – application/json;
      • IF-MATCH – *
      • X-HTTP-Method – MERGE
    • Body – { “ReviewerId”: -1} – Here -1 is used to nullify the value in Reviewer column
fig : Power Automate - "Send an HTTP request to SharePoint" action - Updating reviewer  column to null
fig : Power Automate – “Send an HTTP request to SharePoint” action – Updating reviewer column to null

Complete flow:

fig : Power Automate - flow for updating single value person column using  "Send an HTTP request to SharePoint" action - Updating single value person column to null
fig : Power Automate – flow for updating single value person column using “Send an HTTP request to SharePoint” action – Updating single value person column to null

Thanks for reading!! Feel free to discuss in case any issue / suggestions / questions

HAVE A FANTASTIC TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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

Discover more from Microsoft 365

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

Continue reading