Skip to content

Instantly share code, notes, and snippets.

View rheid's full-sized avatar

Ralf Heid rheid

View GitHub Profile
@rheid
rheid / function CreateTeamsite()
Last active December 22, 2015 09:49
SharePoint 2013 REST Call to a List Item
function CreateTeamsite() {
var url = _spPageContextInfo.siteAbsoluteUrl;
teamsiteValues = {
"Title": $('input[id=ctl00_PlaceHolderMain_txt_name]').val(),
"BusinessUnit": $("#sel_bu option:selected").text(),
"Description_x002f_Purpose":"test", // $('input[id=ctl00_PlaceHolderMain_txt_purpose]').val(),
"Members": peoplePicker_Members.GetAllUserKeys(),
"SecondaryOwner": peoplePicker_secondaryOwner.GetAllUserKeys(),