How to add List item with multiple people picker column using JSOM/Javascript

I want to add list item with multiple people picker column, how can add multiple users in my list column?

i can successfully add single people picker item, but not multiple. Here is my code, and its working fine with adding single people picker item...

var ctx = new SP.ClientContext(appWebUrl);         var appCtxSite = new SP.AppContextSite(ctx, spHostUrl);         var web = appCtxSite.get_web();          var list = web.get_lists().getByTitle("GNPages");          var listCreationInformation = new SP.ListItemCreationInformation();          var listItem = list.addItem(listCreationInformation);          var processContri = new Array();         angular.forEach(ppMultiVal, function (value, key) {             console.log(;             processContri.push(SP.FieldUserValue.fromUser(;         });          listItem.set_item("Title", title);         listItem.set_item("Description", descr);         listItem.set_item("ProcessOwner", ppSingleVal.Id);         listItem.set_item("ProcessContributer", processContri);         listItem.update();          ctx.load(listItem);         //Execute the batch Asynchronously         ctx.executeQueryAsync(             Function.createDelegate(this, success),             Function.createDelegate(this, error)            ); 


Category: sharepoint server Time: 2016-07-28 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.136 (s). 12 q(s)