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
1answer
17 views

The query to field 'list/ChoiceField' is not valid."

I have a lookup list that contains a choice field. I'm trying to retrieve it's values using rest Expand= "list" Select= "list/ChoiceField" I get The query to field 'list/ChoiceField' is not ...
0
votes
1answer
18 views

PWA Workflow gets Access Denied for API Call to get Assignments

I have a SPD 2013 Workflow on our PWA site that has been working fine for 6 months. My colleague has left the business and Admin have disabled his 365 account. Suddenly, the Workflow is failing and ...
0
votes
1answer
17 views

how to know in which folder my file is

How can i Know, using my item metadatas, the folder it is stored in? For example, I do this Get Request : https://sharepoint.com/sites/SPSample/_api/web/lists/GetByTitle('Documents')/items(2)/...
0
votes
1answer
32 views

Log out SharePoint 2013 API

I am working on SharePoint API, and i have a login method which looks like that : public void login(String configFileName) { CredentialsProvider credsProvider = new BasicCredentialsProvider(...
0
votes
0answers
21 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
22 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 ...
0
votes
0answers
43 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
30 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 ...
0
votes
1answer
23 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
40 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
37 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
23 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
626 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
77 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
54 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
41 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
189 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
33 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
23 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
86 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
103 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
141 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
26 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
115 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
173 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
58 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
150 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
76 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
40 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
222 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
214 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
145 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
256 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
157 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
484 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
532 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
93 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
47 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
351 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
2k 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 ...
0
votes
1answer
155 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 ...
1
vote
0answers
77 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
1k 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
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
524 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
1answer
82 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
2k 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}/...