摘要: //get user groups $pnp.sp.web.getUserById(1).groups.get().then(function(data){console.log(data)}) 阅读全文
posted @ 2018-06-21 17:38 JackHu88 阅读(828) 评论(0) 推荐(0)
摘要: Initialize Add user Remove users 阅读全文
posted @ 2018-06-21 17:35 JackHu88 阅读(366) 评论(0) 推荐(0)
摘要: 搜索用户 阅读全文
posted @ 2018-06-21 17:28 JackHu88 阅读(114) 评论(0) 推荐(0)
摘要: 搜索用户 阅读全文
posted @ 2018-06-21 17:27 JackHu88 阅读(145) 评论(0) 推荐(0)
摘要: 获取多用户字段值 阅读全文
posted @ 2018-06-21 17:23 JackHu88 阅读(101) 评论(0) 推荐(0)
摘要: 避免Update事件触发两次 阅读全文
posted @ 2018-06-21 17:21 JackHu88 阅读(139) 评论(0) 推荐(0)
摘要: SPQuery query = new SPQuery(); query.Query = @""; SPList list_MainList = ssweb.Lists.TryGetList(PosMainList); SPListItemCollection mainCollection = list_MainList.GetItems(query); List list_main... 阅读全文
posted @ 2018-06-21 17:19 JackHu88 阅读(104) 评论(0) 推荐(0)
摘要: 批量删除 阅读全文
posted @ 2018-06-21 17:16 JackHu88 阅读(205) 评论(0) 推荐(0)
摘要: using(SPSite site = new SPSite("http://siteurl")) { using(SPWeb web = site.OpenWeb()) { // Check there is an email server configured if (SPUtility.IsEmailServerSet(web)) ... 阅读全文
posted @ 2018-06-21 17:14 JackHu88 阅读(171) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SPWeb w = SPContext.Current.Web siteUrl = w.Url + "/"; ... 阅读全文
posted @ 2018-06-21 17:13 JackHu88 阅读(222) 评论(0) 推荐(0)
摘要: List reviewers = new List(); FieldUserValue userVal = FieldUserValue.FromUser(loginName); reviewers.Add(userVal); if (reviewers.Count > 0) item["Reviewer"] = reviewers; item.Update(); 阅读全文
posted @ 2018-06-21 14:44 JackHu88 阅读(80) 评论(0) 推荐(0)
摘要: 设置Lookup字段 阅读全文
posted @ 2018-06-21 14:15 JackHu88 阅读(131) 评论(0) 推荐(0)
摘要: 判断文件夹是否存在 阅读全文
posted @ 2018-06-21 14:13 JackHu88 阅读(147) 评论(0) 推荐(0)
摘要: Upload attachment Upload file to Library 阅读全文
posted @ 2018-06-21 14:10 JackHu88 阅读(382) 评论(0) 推荐(0)
摘要: NavigationNodeCollection quickluanch = null; quickluanch = web.Navigation.QuickLaunch; context.Load(quickluanch); context.ExecuteQuery(); for (int i = quickluanch.Count - 1; i >= 0; i--) { quic... 阅读全文
posted @ 2018-06-21 14:06 JackHu88 阅读(129) 评论(0) 推荐(0)
摘要: List list = context.Web.Lists.GetByTitle("Test"); ListItemCollectionPosition itemPosition = null; while (true) { CamlQuery camlQuery = new CamlQuery(); camlQuery.ListItemCollectionPosition ... 阅读全文
posted @ 2018-06-21 14:05 JackHu88 阅读(100) 评论(0) 推荐(0)
摘要: SP.Group group = web.SiteGroups.GetByName(siteName + " Owners"); foreach (User user in Users) { group.Users.AddUser(user); } group.Update(); context.Load(groupOwner, g => g.Id); context.Execute... 阅读全文
posted @ 2018-06-21 14:03 JackHu88 阅读(96) 评论(0) 推荐(0)
摘要: List list = context.Web.Lists.GetByTitle("Test"); ViewCollection viewCollection = list.Views; ViewCreationInformation createView = new ViewCreationInformation(); Microsoft.SharePoint.Client.View v... 阅读全文
posted @ 2018-06-21 13:58 JackHu88 阅读(198) 评论(0) 推荐(0)
摘要: var ctypes = listTeam.ContentTypes; context.Load(ctypes, ctys => ctys.Include(c => c.FieldLinks, c => c.Id, c => c.Name)); context.ExecuteQuery(); string GUID = ""; foreach (var item in ctypes) { ... 阅读全文
posted @ 2018-06-21 13:55 JackHu88 阅读(105) 评论(0) 推荐(0)
摘要: Create List Create fields 阅读全文
posted @ 2018-06-21 13:51 JackHu88 阅读(327) 评论(0) 推荐(0)
摘要: 引用以下两个dll Microsoft.SharePoint.Client.dll Microsoft.SharePoint.Client.Runtime.dll 阅读全文
posted @ 2018-06-21 13:49 JackHu88 阅读(608) 评论(0) 推荐(0)
摘要: function startWorkflow(itemID, subID) { var context = SP.ClientContext.get_current(); var web = context.get_web(); var wfServiceManager = SP.WorkflowServices.WorkflowServicesMan... 阅读全文
posted @ 2018-06-21 13:46 JackHu88 阅读(167) 评论(0) 推荐(0)
摘要: function inheritPermission(id){ var ctx = new SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle("Team Documents"); var item = list.getItemById(id); //i... 阅读全文
posted @ 2018-06-21 13:43 JackHu88 阅读(83) 评论(0) 推荐(0)
摘要: var ctx = new SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle("Test"); var item = list.getItemById(26); item.set_item("Author", 764); item.up... 阅读全文
posted @ 2018-06-21 13:41 JackHu88 阅读(114) 评论(0) 推荐(0)