sharepoint-2013

add multiple SPList to SPListItemCollection

空扰寡人 提交于 2020-01-02 20:10:05
问题 I have 1 SPList to 1 SPListItemCollection , I want to add two SPList to 1 SPListItemCollection 1 SPList list = SPContext.Current.Web.Lists[Constants.ListNames.Name]; SPListItemCollection allItems = list.GetItems(spQuery); 2 SPList list = SPContext.Current.Web.Lists[Constants.ListNames.Name]; SPList list2 = SPContext.Current.Web.Lists[Constants.ListNames.Name2]; SPListItemCollection allItems = list.GetItems(spQuery); allItems??? 回答1: I always like to use List<> to handle these. To do that,

Trying to access hosted SharePoint 2013 from Java app gives me 401 although I use correct OAuth token

不想你离开。 提交于 2020-01-02 07:27:07
问题 I'm trying to access our company SharePoint 2013 instance, which is hosted at ourinstance.sharepoint.com, with small Java web application. I registered application through _layouts/15/AppRegNew.aspx this way: I let SP generate Client ID, Client Secret, to App Domain I set: ourdomain:8443 to Redirect URL I set: https://ourdomain:8443/our-redirect-processing I edited application permissions with _layouts/15/appinv.aspx, where I looked it up by client ID and edited its Permission Request XML to

Download file from SharePoint

断了今生、忘了曾经 提交于 2020-01-01 19:05:23
问题 I'm using the REST APIs of SharePoint to query the files hosted inside a corporate user's Office 365 SharePoint site. I have used OAuth to authenticate the user and authorize the the app, as described here: http://msdn.microsoft.com/en-us/library/azure/dn645542.aspx I am able to successfully query the API with a GET request on: https://XXXXXXX.sharepoint.com/sites/xxxxx/xxxxx/myfoldername/_api/files (the request as the Authorization header set to 'Bearer ', as you'd expect.) The above query

Check if Current Users belongs to SP group using javascript Client Side Object Model

谁说胖子不能爱 提交于 2019-12-29 04:20:06
问题 I havent found a specific example of how to get the current user and then check if it belongs to a specific sharepoint group, as I havent found anything I cant provide a code, help on the right direction is appreciated. 回答1: SharePoint 2013 CSOM Prerequisites: compatible with SharePoint 2013 CSOM API only since SP.GroupCollection.getByName Method is not available in SharePoint 2010 How to check if current user belongs to SharePoint group via CSOM (JavaScript): function

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

妖精的绣舞 提交于 2019-12-25 14:32:53
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

浪子不回头ぞ 提交于 2019-12-25 14:31:03
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

How will I get the last modified date of a file in a SharePoint using VBA?

好久不见. 提交于 2019-12-25 06:59:25
问题 I would like to seek help regarding on getting the last modified date of a file in a Sharepoint. What VBA code/command will I use in order to execute it. I would like to show this "Last Modified Date" of the file in a MsgBox when a command button is clicked. Your prompt response is very much appreciated. 回答1: This one had me scratching my head for a bit too... Make sure to add "@ssl" following the root URL e.g FileDateTime("\\site.com@ssl\file.xlsx") 回答2: You can use FileDateTime ( file_path

Sharepoint list item page comments

送分小仙女□ 提交于 2019-12-25 05:29:14
问题 I have a sharepoint 2013 website with a list of items, i want that on an item page (displayForm.aspx) the webiste users will be able to add comments (wordpress like) to the item, how can i do that? 回答1: I think discussion board list may meet your requirements without doing any custom development. Please see the article at url http://www.learningsharepoint.com/2012/12/19/create-discussion-board-in-sharepoint-2013-complete-tutorial/ If you are interested in creating custom UI you may also

sharepoint javascript collection not initialized error

我只是一个虾纸丫 提交于 2019-12-25 02:14:27
问题 I have a strange problem. It occurs totally randomly, I have no idea why and in what circumstances it comes. Details: I want to get the members of a Group with the executeQueryAsync function. In the callback the userEnumerator = users.getEnumerator(); row throws this exception: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. There is no other async code running. I dont know if this important, but

How to fix error in SharePoint while adding users in multi person or group field(people only)

橙三吉。 提交于 2019-12-24 21:23:52
问题 I am trying to add multiple users in a multi person or group field(people only) in a Sharepoint list, But I am getting below error message "An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected." I have used REST call to add items in Sharepoint list, items are being added properly when I remove multi people column in the rest call. $scope.formData = { Title: $scope.codeNumber, SBMTestId:{ "results": [17,15] } } var data = JSON