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
25
votes
1 answer

Adding list items with SharePoint 2013 REST API

I'm trying to add a new item in a existing list using SharePoint 2013 with the REST API. There is pretty good documentation for this here: http://msdn.microsoft.com/en-us/library/jj164022(office.15).aspx#ListItems The list I am trying to add items…
kimon
  • 2,481
  • 2
  • 23
  • 33
23
votes
4 answers

How to get request digest value from provider hosted app?

I am developing SharePoint 2013 Provider hosted app using javascript REST Api. In order to perform create (POST), or update (MERGE) operations on sharepoint items I need to set the 'X-RequestDigest' header with the request. When in…
Matt Mazzola
  • 4,593
  • 4
  • 22
  • 28
10
votes
2 answers

SharePoint List.getListItems WebService to return sub folder contents, recursively

I am calling the lists.asmx webservice from CXF. The following soap call does not return files from list sub folders. It returns folder1,folder2 and file1.pdf Shared Documents folder1 file2.docx file3.pdf folder2 sub-folder1 …
so_mv
  • 3,939
  • 5
  • 29
  • 40
10
votes
15 answers

What developer features excite you the most for WSS 4.0 / SharePoint 2010?

There's been a lot of developer frustration working with SharePoint but we all hope Microsoft has been listening. With that in mind... What updated and new features for developers excite you about working with WSS 4.0 and SharePoint Server 2010? One…
9
votes
4 answers

Java api for Sharepoint server

I would like to know if there is a java api for the sharepoint server. Thanks a lot
TOBGY
  • 109
  • 1
  • 1
  • 5
9
votes
2 answers

curl request to Microsoft Sharepoint API?

Is there a simple way to use a cURL request to the REST API to access a file on my Sharepoint account? For example curl -i -H "Authorization: Bearer " https://mysharepoint.com/_api/web/Lists I have read all the documentation about…
KJ50
  • 765
  • 1
  • 10
  • 27
9
votes
1 answer

How do I check if a Sharepoint Document Library has the Require Approval flag set, using the Sharepoint API?

It would also be useful to be able to check the "Requires Checkout" flag as well. I thought it might be a property on the SPDocumentLibrary object, but I can't see it. Do I need to look in one of the admin namespaces...?
Matt
  • 1,370
  • 2
  • 16
  • 40
8
votes
12 answers

Easiest way to extract SharePoint list data to a separate SQL Server table?

Edited: What is the easiest way to scrape extract SharePoint list data to a separate SQL Server table? One condition: you're in a work environment where you don't control the SQL Server behind the SharePoint Server, so you can't just pull from the…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
8
votes
1 answer

"Encoded" login names in SharePoint Client Object Model

I'm writing a small .NET proof-of-concept console app that performs a series of actions on a SharePoint document library. I noticed that the following methods expect an "encoded" login name - that is, login name including provider information, e.g.…
bernhof
  • 6,219
  • 2
  • 45
  • 71
8
votes
2 answers

SharePoint SPFolder.SubFolders.Add not actually adding a folder

I have a couple of document libraries that are just standard libraries - no associated custom content types or anything. I am trying to add subfolders to them and in some cases it just doesn't work. SPFolder parent = library.RootFolder; SPFolder…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
7
votes
1 answer

Authenticating Office 365 SharePoint Online OOTB services

I want to consume SharePoint data into a non .Net platform. I already use the SharePoint OOTB services like Lists.asmx, Webs.asmx and search.asmx for this purpose. I have successfully added support for forms based authentication using…
7
votes
2 answers

How to reference two versions of an API?

I have a need to reference two different versions of the Sharepoint API dll. I have a webservice that needs to run under both Sharepoint 2 and Sharepoint 3, but also needs to work with new features provided by the Sharepoint 3 API (Checkout and…
Matt
  • 1,370
  • 2
  • 16
  • 40
6
votes
1 answer

How can I persist web part state from inside a client web part content page?

I have just set up and created by first ever SharePoint development effort: a project for a web part, to be hosted in a SharePoint Online instance (my Office 365 trial). I have figured out how to use the List API to pull the content I am supposed…
ProfK
  • 49,207
  • 121
  • 399
  • 775
5
votes
1 answer

CXF - catching/handling HTTP exceptions

This is rather a basic cxf usage question. How/where can we catch the actual HTTP exception/error. I kind of followed the Interceptor/MessageObserver concept but could not capture the HTTP error using them. I see this error in the log4j log file.…
so_mv
  • 3,939
  • 5
  • 29
  • 40
5
votes
1 answer

SPQuery : Difference between Query and ViewXml properties?

Hello SharePoint developpers ! I can't deeply understand the difference between Query and ViewXml properties in the SPQuery object. In the msdn documentation, it's written : Query : Gets or sets the inner XML used in the query. ViewXml : Gets or…
KitAndKat
  • 953
  • 3
  • 14
  • 29
1
2 3
23 24