Questions tagged [api]

Application Programming Interface (API) is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service. When used as a question tag, please be sure to describe in your question which APIs are being used.

Filter by
Sorted by
Tagged with
0
votes
2answers
485 views

Inserting multiple AssignedTo in a task list

I'm trying to insert a new task in a standard SharePoint task list, this is my item: var item = { Title: taskTitle + " - " + subSiteName , ProjectId: projectID, AssignedToId: {'results': ...
-1
votes
2answers
1k views

Fetching external data into SharePoint online sites

Is it possible to get data from external sources into SharePoint online sites? I suppose rest API's is an option, but how can that be done? Any suggestions would be much appreciated.
0
votes
1answer
463 views

you don't have authorization to view this page

I can't open web services link in SharePoint Getting this error when open http://site/_vti_bin you don't have authorization to view this page If someone can help me. I will be appreciated
4
votes
1answer
994 views

Insert item in an external list via REST API

I'm trying to insert an item in an external list (a SQL server table linked to SP through BCS) via javascript...i thought it was simple but... this is the function for insert this.insertListItem = ...
0
votes
2answers
3k views

Sharepoint 2013: simple api call not working

[site name]_api/web/lists/GetByTitle(‘ListName’)/items So why does this not work? All the examples I see indicate that it should work. <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/...
0
votes
1answer
2k views

Sharepoint PHP File Upload

I'm new to Sharepoint integration. I'm hoping to get some answers and direction for the script. The current process requires an XML file to be uploaded into a library, from a separate website. My ...
5
votes
1answer
915 views

Using REST when colon appears in column name

I have a columns named 'Image:Thumbnail' and 'Image:Picture'. I am trying to refer to these columns using the REST API. I have tried using '_x003a_' (as in 'Image_x003a_Thumbnail') instead of the ...
2
votes
1answer
1k views

Weather App Part for SharePoint Online

I need to implement weather widget on my SharePoint Online portal. Below are my basic requirement. • Each user of the portal tagged to specific location worldwide. Every time user logged into ...
1
vote
0answers
164 views

SharePoint 2016 compatibility

Does anyone know the link to API or document for API in SharePoint 2016? We are currently using '.Net client API' for SharePoint 2013 and want to check if the methods used from it will still be ...
1
vote
3answers
735 views

How to create a Request Http “GET” to url

I want to make a request http Webservice API to https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS] using javascript. Can I do ...
1
vote
0answers
64 views

SharePoint Online/365 with SAP API [closed]

Has anyone pulled data into SharePoint Online (365) from SAP using an API? Any recommendations on where to start, what to think about, and what to watch out for? Any tips appreciated!
1
vote
1answer
515 views

REST - Get expanded property data for use in angular

I am trying to figure out how to get the expanded property data and be able to use that data in my angular code. REST call to get expanded property Data: /_api/Web/GetFolderByServerRelativeUrl('...
2
votes
1answer
4k views

Get file data from REST

I am trying to find a way to combine two rest calls so that it gives me the correct files as well as the relevant data. This call gives me the correct data /_api/Lists/GetByTitle('Pages')/Items?$...
2
votes
1answer
410 views

Was -NoADLookup Removed from New-SPOMigrationPackage?

In the SharePoint migration API, you use the SharePoint Online Management Console, in 2015-June they added the -NoADLookup parameter to the New-SPOMigrationPackage command. It appears as though the ...
0
votes
1answer
179 views

SPD 2013 REST API: Passing multiple type properties in metadata for creating a list item

how can I define two type properties in one __metadata then pass them in one rest call (post) in designer? For example, how can I pass SP.Data.ProjectPolicyItemListItem and SP.FieldUrlValue in one ...
0
votes
1answer
2k views

Interpret Search with refiners url query string

After the defult search web part with refiners is loaded, i need to execute the same query in a second moment. I have a complex url to interpret (decoded yet), like this: ...#/Default={"k":"b*","r"...
2
votes
0answers
96 views

Add .aspx file via REST

I'm able to add a .txt file to my Sharepoint library by posting to this URL: https://my_subdomain.sharepoint.com/sites/my_path/_api/web/GetFolderByServerRelativeUrl('/sites/my_path/Pages')/Files/add(...
4
votes
1answer
2k views

SOAP API to get site Collection Users

How can I get list of all users present in the SharePoint Site collection using SOAP API. Is that possible? Please suggest something. Because I have to use that URL in InfoPath form.
2
votes
0answers
444 views

SharePoint Online : Using REST API for getting list items return null

I am trying to create a Sharepoint hosted add-ins to get data list items. My code are below var hostweburl; var appweburl; //The SharePoint site where the App is installed hostweburl = ...
1
vote
1answer
2k views

Problem with workflow REST

I seem to be having a problem making a rest call to create a list or add a user to a SharePoint group. Both give me the same error - Response: {"error":{"code":"-1, Microsoft.SharePoint.Client....
4
votes
3answers
2k views

$batch operations on SharePoint 2013 on-premise not working

I need to do bulk inserts and learned that there is the $batch operation in the REST API. https://msdn.microsoft.com/en-us/library/office/dn903506.aspx I read through this and following and explored ...
3
votes
2answers
6k views

SharePoint throttling: Receiving a 429 without any details

In an application I'm working, from time to time I see throttling related errors. In some cases I get a 429 error, like this: 429 TOO MANY REQUESTS. However, I also get errors, with only the HTTP ...
1
vote
1answer
5k views

How to post value in multiple user field via SharePoint REST API

I am new to SharePoint 2013 app develpoment, so I'm having trouble with some easy (I think it should be easy) REST Call. I got a list for issue tickets, which contains a user field column. In my SP ...
2
votes
2answers
894 views

Upload files with REST or alternatives

I need some help with Server to Server upload. (not from the browser) Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server (java/coldfusion/other). I am getting a ...
1
vote
1answer
4k views

Upload multiple files with REST API in document library with custom properties

I am trying to upload multiple documents to the document library, I followed the answer posted on this link, I am able to upload the documents but I have some custom columns in the library, please ...
1
vote
1answer
277 views

Create File using SharePoint REST API call But It couldn't edit or view

url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Document')/Files/add(url='abc.docx',overwrite=true), method: POST, body: "This is my doc", Headers: Authorization: "Bearer " + ...
1
vote
1answer
939 views

SharePoint 2013 REST API $expand issues

I'm new to using the SP API's and I am having an issue getting the required result using $expand on list lookup columns. I have 3 lists named ProjectList, SiteList, RegionList with relating lookup's ...
0
votes
1answer
4k views

SharePoint 2010 file upload via REST api

I am developing application that access files on SharePoint 2010 via REST API I referenced this link, so I made it download and get metadata for documents. But, While I am trying upload file, I can'...
1
vote
0answers
159 views

Access Denied when trying to create an item with SharePoint API

I am using OAuth to authenticate a client to access SharePoint and create some files. I have the access token and can access endpoints with no issues. However, when it comes to creating items, I am ...
1
vote
1answer
116 views

what is different between office 365 SharePoint and SharePoint on-premise? (using API)

I want to develop application that can access SharePoint on-premise server and download files from that server. I already developed JAVA application using REST API of Office 365 SharePoint. so what ...
2
votes
1answer
921 views

Records Management CSOM API in SharePoint 2016

Does anyone know if with SharePoint 2016 (online) we finally get a CSOM interface to the records management functions?
1
vote
2answers
3k views

Is there any way to overcome URL length limitation in REST API “GET” Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
0
votes
1answer
620 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
0
votes
1answer
313 views

“Create Translation Package” via API?

On multilingual SharePoint websites you can export/import the content with XLIFF files. Is this functionality somehow available via the API? Multi-language website background here: Create a multi-...
0
votes
1answer
662 views

Filtering REST query by multiple boolean conditions

I am trying convert this pseudo sql query to search api SELECT * FROM Sites WHERE Path IN ("www.xyz.xx","www.zys.xx") AND Type = "STS_Web" Basically I just want to return info about sites by given ...
0
votes
1answer
59 views

REST Looking for the last created / updated documents in 24h for all workspaces

I am looking for a solution to get all the created / updated documents for the last 24h for all my workspaces. How is it possible via REST API? Like an Activity Feed.
0
votes
1answer
2k views

How to create multiple fields with their datatypes using REST API?

According to MSDN, we can create field like below.. $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') /fields", type: "POST", data: "{ '...
0
votes
1answer
974 views

Adding blog post item category with REST API Sharepoint 2013

I want to insert a billet item list with related category ID in REST API Sharepoint. I proceeded as follows: POST /_api/lists/getbytitle('Billets')/items { "__metadata": { "type": "SP.Data....
0
votes
1answer
309 views

SharePoint Rest API Problem

I am using Rest API in an a web application using JavaScript, JQuery, and HTML and I'm having issues with pulling phone numbers. I have 3 phone number fields and they all show similar to this <d:...
2
votes
1answer
1k views

Execute crud operations using rest api outside SharePoint by .NET

I need to do CRUD operations on SharePoint online lists (intranet) using REST api from a standalone Asp.Net application which is hosted completely outside office 365 (on on-premise). I know that it ...
0
votes
6answers
8k views

Searching Users in AD through REST in sharepoint?

Any ideas on trying to find/search users by id in Sharepoint by a REST query? At the moment I am playing around with the clientside people picker to search for users https://msdn.microsoft.com/en-us/...
0
votes
1answer
876 views

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like: {"columns":[{"name":"A","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":"left"},{"name":"B","visible":false,"width":150,"sort"...
0
votes
1answer
322 views

SharePoint Online - Profile Properties Update API - Operation is not valid due to the current state of the object

I'm trying to run the Bulk UPA Custom Profile Properties Update API for SharePoint Online on our SharePoint Online tenant. This one: http://dev.office.com/blogs/introducing-bulk-upa-custom-profile-...
0
votes
1answer
326 views

Share multiple files of Document Library programatically

I want to share multiple files from Document Library programatically or any other way using Client Object model or REST API. Thanks.
1
vote
2answers
9k views

Update person or group field using REST API in Document Library

I want to update the Person or Group field in Document Library using REST API. How can I achieve this. Thanks.
1
vote
0answers
437 views

Adding documents into a Document Set folder in SPO by busing Javascript

I am working on a project where I have to build the logic to upload documents into document set folders and I am stuck building the end point. Can we work with document sets in the same way we do it ...
1
vote
0answers
24 views

Prevent SharePoint from sending emails when changing elements via API

I'm about to remove attachments in around 10k list items via SOAP API, how do I prevent email notifications about this?
3
votes
0answers
43 views

Reaching subsites of SharePoint domain

I am writing an application that scrapes all the files from a given SharePoint site and all of its sub-sites. This worked perfectly when I ran it locally however, now that it's running on a server ...
1
vote
0answers
88 views

Connecting outside database via WEB API's to SPO

Has anyone been able to automate a connection to an outside source that uses WEB API's? We use Deltek Vision in the cloud, and would like to be able to automate some information to carry over from ...
0
votes
1answer
398 views

Document Management Model API

Sharepoint has a Document Management Programming Model. From what I understand, this is used to create a document management environment and will allow users to access, share and add/edit documents ...