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
14 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
13 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
21 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 ...
0
votes
1answer
17 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 ...
0
votes
2answers
44 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
40 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/...
1
vote
0answers
30 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/...
0
votes
1answer
26 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
85 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 ...
0
votes
0answers
29 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
13 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
51 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
1answer
45 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 ...
2
votes
1answer
41 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
1answer
23 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 ...
1
vote
1answer
52 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=...
7
votes
1answer
162 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. ...
2
votes
1answer
53 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 ...
2
votes
1answer
81 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.
0
votes
0answers
71 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
36 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
141 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 ...
4
votes
1answer
197 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
97 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
186 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://...
0
votes
1answer
122 views

jQuery and REST API to list all subsites and users in those subsites with full control

I'm looking to display on a web part in SharePoint online a list of all sub-sites and all users with full control to that particular site i.e. Team Site Site Owners https://ab/...
0
votes
3answers
327 views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
0
votes
2answers
441 views

SharePoint REST API - update metadata Document Library Item when value string includes apostrophe (single quote) character

I want to update a metadata column for an item (document set) in a SharePoint document library using REST API (via VBA). The below (vba) code extract/simplification works fine for simple cases, for ...
0
votes
1answer
47 views

Get subfolders if folder name contains # (hash)

I am experiencing difficulties with getting the subfolders and files inside the folder that contains #. API URL was: http://site url/_api/web/GetFolderByServerRelativeUrl('/#2')')/folders API ...
0
votes
1answer
18 views

App API Access to Single Site Collection

Is it possible to setup Azure based App permissions to only a single Site Collection? We are putting together a small application which will scrape external documents from various sites and dump them ...
1
vote
0answers
41 views

How do I monitor SharePoint Online API usage?

Our company stores projects in Office 365 SharePoint Online, creating one site per project utilizing site templates. We then use SharePoint Workflows, PowerBI, Microsoft Flow, PowerApps, and custom C#...
0
votes
1answer
17 views

From all Documents in a folder in SharePoint,get only documents related to particular user

From All Documents in a Folder in SharePoint,get only documents related to particular user using API. I have a generic account which has access to all the documents in the folder and by using API call ...
0
votes
2answers
251 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
2
votes
2answers
1k views

SharePoint REST API Document Library - filter by folder name

I'm running a JavaScript script that updates permissions on folders in lists and document libraries. To do this I need to get the ID of the item I want to update. The folders all have unique names ...
-1
votes
0answers
159 views

On-Premise REST API with External Script

I am new to the SharePoint REST API and could use some guidance. The setup is as follows: I am running an externally hosted Python script that needs to be able to grab files from an On-Premise ...
0
votes
1answer
94 views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
0
votes
0answers
19 views

Sharepoint 2013 Multilingual support with Anugular JS

I have a sharepoint list which has column for English and Arabic, Now I need to show the values in webpart by using angular js. how to handle dynamic column in angular js. For e.g <div ng-repeat="...
0
votes
0answers
41 views

Use Microsoft Text API translator in SharePoint Pages

we have developed some pages with dashboards using HTML,JQuery and Rest API calls. now we want to convert the pages to different languages based on the User selection from a drop down(Ex: French) ...
1
vote
0answers
65 views

REST API - Filter Available Fields Choice Results?

We have a very large choice (nearly 20,000 options!!!) field that we want to be able to retrieve the choices, and preferably filter them on the server side. This is the call to get the options _api/...
0
votes
1answer
907 views

SPFx Web Part - No 'Access-Control-Allow-Origin' header is present on the requested resource.

When attempting to access an Azure AD secured web API from a SharePoint framework web part, I get the following error: Response to preflight request doesn't pass access control check: No 'Access-...
0
votes
0answers
80 views

Google map API v3 not working in sharepoint 2013 publishing site

use a Google Maps API in SharePoint site to display a map on SharePoint page, map works perfectly in SharePoint 2013 team site.but not working in SharePoint 2013 publishing site.I am using content ...
0
votes
0answers
81 views

Downloading file from Anonymous view link

I have Anonymous view link to some file and I want to download this file via C#. WebClient.DownloadFileAsync() doesn't work. On client app I don't use SharePoint credencials so I can't use API - it ...
0
votes
0answers
63 views

API TotalRows with trimduplicates inconsistent

I'm trying to solve a issue related with pagination in my app. The TotalRows and TotalRowsIncludingDuplicates are both inconsistent, I can't rely on this info. I found this info about it, so it's a ...
0
votes
1answer
17 views

API field setup requirements?

I have a custom list and would like to reference the information in a SPFX web part. I'm following the sharepoint-crud sample from github as an example. When I make the call to the desired list with ...
2
votes
0answers
476 views

Access-Control-Allow-Origin' not allowed access SharePoint Ajax call cross domain

I am trying to access cross domain service using ajax call in sharepoint. getting below error Failed to "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-...
1
vote
0answers
60 views

Edit content in Wiki page using script

I have a Wiki Page in SharePoint . which i want to be populated by Build results from another server using an Automatic script , but after digging through forums and google im unable to find a good ...
2
votes
1answer
1k views

How to do Microsoft Graph API Filter on Lookup Column in SharePoint List Items?

I am tried to apply Filter on Lookup column using Microsoft graph API filter. But it didn't filter. I have used below api to filter. https://graph.microsoft.com/v1.0/sites/{sites}/lists/{listname}/...
0
votes
1answer
72 views

SharePoint access via API

I have just started with a SharePoint and I am not able to do a simple thing. I have over 12k files on SharePoint and I want to write a desktop app using C#, which schows me all files with names, ...
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 ...