Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

The tag has no usage guidance.

0
votes
0answers
13 views

Get a specific version of a file/document SP 2013

I am currently working on a SP project using JAVA and Rest calls, I have to get a specific version of a file. For example, my file is named Document and is 4.2 version. On the site, I can see the ...
0
votes
2answers
21 views

SharePoint 2013 Rest API (targeting specific columns)

Very new to SharePoint Rest API's, I got the rest to work filtering the first Column but now I am running into issues with showing the multiple columns for example. I am trying to filter out the ...
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....
0
votes
1answer
19 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
0
votes
0answers
24 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
0
votes
0answers
18 views

Jquery Datatable Grouping 2 levels (Group and SubGroup)

I'm trying to group datatables using SharePoint List RESTAPI and I get to accomplish level grouping and I want to group level two as subgroup. Please let me know if that's possible. The picture below ...
13
votes
2answers
3k views

Getting data from SharePoint Online with an App, service to service

I have registered an App in my SharePoint Online, and I can use it's ID and secret with the Office Dev PnP PowerShell library. Works like a charm. Now the issue is that we are trying to connect to the ...
0
votes
1answer
638 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
659 views

Use REST API to like or rate a SharePoint List Item

i would like to rate items via rest API. and i would like get user specific ratings. so if the user rated an item with 5 stars i want to see 5 stars somewhere in XML from rest API. By default i ...
0
votes
1answer
727 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
0answers
18 views

How to use RowsPerPage in the REST API

Whenever I send a request with RowsPerPage set, either via GET or POST, more rows than the RowsPerPage value are returned. RowLimit works though. /_api/search/query?querytext='sharepoint'&...
0
votes
1answer
26 views

Index all the rights

I have been trying to see the rights on folders within a sharepoint list. I haven't been able to do so with Powershell. Is there a way to do it with Python? I need all the rights on all folders. So ...
1
vote
1answer
61 views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
0
votes
1answer
20 views

Unable to update InformationRightsManagementSettings using REST

The following request returns Status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The ...
1
vote
2answers
3k views

Sharepoint REST API - Create a List using Javascript

I'm trying to create a list using REST API, the javascript is in a Sharepoint Page, I'm logged as a System Account and every time I run the script I get the following error: {"error":{"code":"-1, ...
0
votes
2answers
141 views

How to get version history of item using REST

Very new to SharePoint so I am sure this is a newbie question... I did look at the forums. Here is the command I am using: https://Server/Site/_api/lists/getbytitle('Equipment%20and%20Inventory')/...
2
votes
1answer
53 views

SharePoint 2013 rest API get the average of calculated column

I have a calculated column for ticket response time Want to get the average response time for all tickets average response time = (sum of #response time)/ #of tickets call: https://siteurl/_api/web/...
0
votes
2answers
932 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 ...
1
vote
0answers
39 views

Yahoo Weather API stopped working in JQuery [closed]

I'm using the Yahoo API code to retrieve the weather information since last 5-6 years but it is stopped working since last couple of months automatically var URL ='https://query.yahooapis.com/v1/...
2
votes
1answer
882 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 ...
0
votes
1answer
30 views

Search SiteGroups API not working when case sensitive

I'm using the API to search for sitegroups as below: "/_api/web/SiteGroups?$orderby 'Title'&$select=Id,Title,LoginName" + skiptop + "&$filter=startswith(Title,'" + value + "')" However, I ...
1
vote
0answers
119 views

How to use external API in sharepoint online or in SPFX?

I am trying to integrate the Microsoft Translator Text API to a SharePoint online site, and the method that I am using is with sharepoint framework webpart. but when I press the button to do the API ...
2
votes
1answer
859 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
0
votes
0answers
31 views

SharePoint how to upload file using javascript

I just want to use SharePoint to upload files to it and downloading from it without getting into any add-in or whatsoever business(just for storage). But to test JavaScript code from the official ...
0
votes
1answer
16 views

Sharepoint api search by properties

I am trying to see if I am able to search sharepoint from a given string https://myShrp_URL/My%20Document/_api/search/query?querytext='Node: 592832'&selectproperties='Node' I notice it is not ...
1
vote
2answers
59 views

Rest Search API SharePoint

I am trying to retrieve images using REST SEARCH API from multiple Picture Libraries distributed across sub-sites(sub-sites are all under a single site collection https://xyz/site/*) .I also need to ...
1
vote
2answers
1k 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.
7
votes
1answer
168 views

Given a set of file URLs from sharepoint, what is the fastest way to download them all?

I have a list of SharePoint list item URLs and list item attachment urls. I need to download all the files from each one. Overall: I have over 50 000 000 files to download over 200 farms. ...
0
votes
1answer
1k 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: "{ '...
2
votes
1answer
68 views

How can we get the list items from multiple lists using Batch REST API?

I need to load all master data from multiple lists and bind it to from in form dropdown. For that I need to call every list separately. Is there any option to call all the list in one query using ...
0
votes
2answers
2k 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

Fetch User Details from Person Or Group Field Using REST API

I was trying to retrieve user WorkPhone from a people and group field but its throwing error saying The query to field 'Application/WorkPhone' is not valid. But I tried the same query for the ...
10
votes
1answer
3k views

The remote server returned an error: (403) Forbidden when accessing office365 site through external APIs

We have built a desktop app that import/exports SharePoint lists into/from Office 365 sites. The app works perfectly, and we were able to do the import/export of Office 365 site pages for many clients ...
0
votes
1answer
24 views

Sync a Sharepoint list from GCP

Is it possible to create a Sharepoint that has APIs to synchronise the data with data stored on Google Cloud Platform? I would ideally like to implement an API to keep the data in the Sharepoint list ...
2
votes
1answer
2k views

Sharepoint REST api search for a querytext in a site

I am having issue while searching using query text in a specific site. When I use following get query, https://client.sharepoint.com/_api/search/query?querytext='vpn', I get results in the entire ...
2
votes
2answers
3k views

Create an item with REST API from workflow - SharePoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So I thought is it possible to create an item in list with REST API through the ...
0
votes
1answer
3k 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'...
0
votes
1answer
277 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-...
1
vote
1answer
75 views

Getting objects with today's date in Rest API

I need to fetch task objects which are completing today using Rest API , Can anyone please suggest how can we use today option to filer the data? I am using below query: /api/Objects/Task?$filter=...
2
votes
1answer
54 views

SharePoint 2013 REST API filters

As part of our requirement, i created one BCS connection which retrieves data from a SQL stored procedure which acceppts two input paramaters. I was able to create a external list out of it. But when ...
0
votes
1answer
2k views

Calling external secure rest APIs from a Sharepoint form

I am very new to Sharepoint and normally code using JS and Angular. I would like to create a form that is hosted in SharePoint. The form will collect some simple data (name and a few other fields) ...
2
votes
1answer
106 views

Sharepoint 2013 rest api group subtask with respective main task?

Want to display Task and sub-task using the rest api jquery. My query string displays task and sub-task as individual unrelated task.
1
vote
1answer
1k views

How to get more than one SharePoint list using REST API?

I have created multiple lists in SharePoint 2013. I need to get the multiple list items using REST API call. I have tried the method to get the multiple list items using API within the for loop but ...
0
votes
0answers
74 views

401 - Unauthorized: Access is denied due to invalid credentials

I have a simple mvc api which saves a url to SQL and retrieves it. For some people it works just fine, but some of them do not have access. Error: {"readyState":4,"responseText":" Server Error ...
0
votes
1answer
37 views

How to Authenticate Sharepoint User in Public Restful Service

we going to create a web application on sharepoint online with app parts. One of the app part will call the public restful service to get payroll information from SAP(ERP). We have created a web ...
1
vote
2answers
175 views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
0
votes
1answer
11 views

How do I make Cross Site Scripting from External Content work

Currently using SP2013 on-prem and need to pull information from and in house application and display it on a page. Not using an iframe how can I pull specific information from a database and feed it ...
6
votes
1answer
204 views

PNP JS in SharePoint

Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all ...
0
votes
2answers
121 views

sharepoint API rest custom column http 400

I have a list in sharepoint, where I have put the totals of the columns I am interested in. ID Count=50 Certification Count=9 I want to display these counts on another page. I have found a code to ...
1
vote
1answer
217 views

SP Online REST API Durable Document Link

My google searches have all led to dead ends. Is there a way to retrieve the durable link code for a document using the REST API? When you copy a link in the GUI, it takes the form of:- https://...