Thursday, November 27, 2014

How to set, Person or Group field to Empty or Null in SharePoint using JSOM

There was a requirement for me, where I need to set/update custom "Person or Group" field column to empty using JSOM

Here is the simple way to do that

Create an empty array

var oUser = new Array();

and pass that empty array to column of type "Person or Group"

listItem.set_item('CustomModifiedBy', oUser)

In the above code snippet, 'CustomModifiedBy' is of type "Person or Group"

1 comment:

  1. The purpose of education is to replace an empty mind with an open one. See the link below for more info.


    #empty
    www.ufgop.org

    ReplyDelete