Questions tagged [sharepoint-api]

Microsoft SharePoint API

Microsoft SharePoint can be used to provide intranet portals, document & file management, collaboration, social networks, extranets, websites, enterprise search, and business intelligence. It also has system integration, process integration, and workflow automation capabilities.[1]

Microsoft make available an API to interact with SharePoint servers, this API is accessible through a REST interface or a collection of .NET libraries, primarily the client library (can execute on a different machine to the SharePoint server) and the server library (must be executed on the same machine as the SharePoint server).

Both of these libraries can be obtained from the files installed by the SharePoint SDK. They contain the namespaces Microsoft.SharePoint.Client and Microsoft.SharePoint.Server respectivley.

Further functionality can be accessed through additional libraries, however these libraries are only available from the install path of the SharePoint server and they provide functionality (such as email) only available when executed on the same machine as the server.

355 questions
3
votes
1 answer

Sharepoint. Show list item version history dialog

I have custom page and id of list item. How can i show sharepoint version history dialog from my page?
Ievgen
  • 4,261
  • 7
  • 75
  • 124
3
votes
0 answers

403:Forbidden Error on sharepoint online rest api on reading /updating a sharepoint list

Im trying to connect my nodejs application to update/read list items from https://xyz.sharepoint.com/sites/dev/_api/web/lists/GetByTitle('listname'). Using sharepoint addin authentication where app was registered onto xyz.sharepoint.com registration…
3
votes
2 answers

SharePoint API: Can't authenticate 'Sites.FullControl.All' in client_credential flow

I've have an App that would like to access SharePoint API. I've registered it in AD, and gave it the following permissions: But when I ask it to be authenticated with the following scopes - https://graph.microsoft.com/User.Read.All -…
3
votes
3 answers

How to get user rating programatically in Sharepoint 2010?

So I have enabled Ratings in Sharepoint 2010 for a Document Library following this guide: http://weblogs.asp.net/bsimser/archive/2009/10/19/sharepoint-2010-what-s-new-ratings-spc09.aspx Now I need a way to get the ratings programatically in a…
empz
  • 11,509
  • 16
  • 65
  • 106
3
votes
1 answer

$skiptoken doesnot skip and return next set of records with the Sharepoint API

We are trying to query the Sharepoint API. We are using the below query to get the top 5000 and it works. https://abc.123.org/sites/js/project/_api/web/lists/GetByTitle('S%20Codes')/items?$top=5000 But breaks if we try to get more than 5000…
trx
  • 2,077
  • 9
  • 48
  • 97
3
votes
1 answer

How to parse /getusereffectivepermissions sharepoint response in java?

I have sharepoint request like this: /_api/web/getFolderByServerRelativeUrl('')/ListItemAllFields/getusereffectivepermissions(@u)?@u='' The response is following:
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
3
votes
1 answer

Sharepoint 2010 SPListTemplate how to get list of fields?

I need to get all fields from my list template? How can i do this? var web = site.OpenWeb(); var template = web.ListTemplates["SomeTemplate"]; template ... ???? -There is no method to get fields.
Ievgen
  • 4,261
  • 7
  • 75
  • 124
3
votes
0 answers

Create a Sharepoint anonymous link using REST api

I have a PHP application where I retrieve the documents from Sharepoint and display into a list where users can click to see/download the file. Currently I'm linking to the Sharepoint URL which is protected by login. I need to link to a link that…
3
votes
1 answer

SharePoint user info User Information List and People Column Type

I am retrieving the user information from a number of site collections through the SharePoint web services. http://mysitecollection.com/_vti_bin/usergroup.asmx Using the 'GetAllUserCollectionFromWeb' method to return all the users for a site…
statto
  • 492
  • 2
  • 6
  • 16
3
votes
0 answers

SPContext.Current.FormContext.OnSaveHandler not firing when SPControlMode is New

I've got a web part that I'm using to add some custom controls to the New, Edit and Display forms for a SharePoint ListItem. I added a handler for SPContext.Current.FormContext.OnSaveHandler to update the item. I add my web part to the Edit and New…
Tim Scarborough
  • 1,270
  • 1
  • 11
  • 22
3
votes
1 answer

How to create custom Document Libraries and Folders with SharePoint API

I've got an external application which performs web service calls to SharePoint API. I need to create two functionalities: Create Document Libraries with e.g. foo, bar and baz as required data (columns). The data should be passed via the web…
SP dev
  • 31
  • 2
3
votes
1 answer

Why does the internal field names not match when working with list items using the SharePoint REST API?

When I work with list items I need to use internal field names to set the field values. I have several fields of different data types, lets focus on two: 'Comment' (Multiple lines of Text) and 'Assigned' (Person or Group). I've created both…
ludvigeriksson
  • 378
  • 3
  • 13
3
votes
1 answer

"Unauthorized" exception by Simple.OData.Client by accessing the SharePoint REST API with valid credentials from Xamarin PCL

Before I used Simple.OData.Client in our Xamarin project, I tried it with help of LINQPad. I was very impressed by the easiness to use it. When I built it into our Xamarin project I got exception by trying to get data from SharePoint's REST Api.…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
3
votes
1 answer

Upload a .pdf file to a Sharepoint Document Library

Within an Access 2007 application, I'm creating a static report in .pdf format. I want to create it, then export the static report (not the data itself) to a Sharepoint Document Library. The intent is for it to be a public repository, no versioning.…
JimS-CLT
  • 665
  • 4
  • 13
  • 30
3
votes
1 answer

Sharepoint 2010 Managed Metadata - unable to get Term from TermSet

Having a really aggravating problem using Managed Metadata in SP2010 where I can get a Taxonomy Session, Term Store and Term set fine, but when I try to retrieve a term from the term set, I get a TermStoreOperationException which says that it…
Henry C
  • 4,781
  • 4
  • 43
  • 83
1 2
3
23 24