Questions tagged [rest]

The REST (Representational State Transfer) interface in provides access to lists and libraries as a relational data service. A core concept of any RESTful interface is the resource, and in SharePoint Foundation, lists and items are represented as HTTP resources that can be addressed by remote URLs.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Update Person or group column using SharePoint 2010 Rest Interface

I am trying to update a people or group column using SharePoint 2010 Rest Interface in Power Automate. Only this seems to update the properties of the File even if some other user is editing it ...
0
votes
0answers
18 views

Why does Get-SPOSite Fail Intermittently?

Has anyone else seen this intermittent error with Sharepoint Online service: Get-SPOSite -identity https://<mysite>.sharepoint.com/sites/100060-24 Get-SPOSite : Cannot get site https://<...
0
votes
1answer
29 views

GET SharePoint Managed Metadata Field with REST API Giving Error

I am trying to retrieve a Managed Metadata column from a SharePoint list using a REST call. The column/field name is Department. I found this site, https://threewill.com/pulling-managed-metadata-...
0
votes
0answers
17 views

SharePoint High Trust 401 after a day

we are experiencing a really difficult problem and TBH could do with a few ideas of things to check over. So we have a high trust SharePoint application that works well however it just seems, most ...
0
votes
1answer
20 views

project online rest api date fields

What format does Project Online save dates? In the ProjectData api, I can see all of the date fields saved as /Date(1612944000000)/ . Using the /_api/web for the actual project subsites, you see ...
0
votes
1answer
14 views

PWA/Project Online - Setting Project ID dynamically with REST

I am trying to dynamically set the Project UID in an Angular app which is deployed to every subsite throughout my PWA. I need to be able to ideally, store the Project UID in a global variable which I ...
0
votes
1answer
26 views

Problem with REST Api

I have writen a URL for REST API: /_api/web/lists/GetByTitle('KomorkaOrganizacyjna')/Items(1)?$select=Title,MPK,Skrot,Informacje_o_komorce,Prze_x0142_o_x017c_ony/Title,Kierownik/Title,...
0
votes
0answers
20 views

I Have got List of workers and menager in list wchich I read by REST API

What Should I Write in declarations and in return code to get this users name and photos. Here is REST returns: What should I change to get users name and surnames and photo os users ? And here is ...
0
votes
1answer
23 views

How to EnsureUser with AD group in REST

I am trying to add AD group to SharePoint site in REST using EnsureUser but I kept getting error message "The specified user c:0+.w|S-1-5-21-1814438218-152777602-930774774-762833 could not be ...
1
vote
0answers
29 views

OData query to get a field values by column position in the list

So I want an OData query that allows me to get the field and its values by position in the viewable list. In the above picture, for example, I want the values in the "Title" column but that ...
0
votes
0answers
34 views

Rest api caml query not returning field in ViewFields

I have a CAML query that I am running through the REST api, the simple example below requests 2 fields - FileLeafRef and CustomField. Custom field is simple a text field, nothing special. CustomField ...
0
votes
0answers
17 views

Change icon of a folder via JSOM/REST

SP2013 on-premise: I sporadically happens that a document set gets created and is displayed with a folder icon rather than a document set icon. Does anyone have a JSOM/REST snippet to change a ...
0
votes
1answer
31 views

AJAX Request to sharepoint REST API But receiving CORS error

I want to request a sharepoint server with ajax but I get an CORS error : How can I solve this issue please $.ajax({ url: "http://myserver.com" + "/_api/web/Lists/GetByTitle('...
0
votes
1answer
21 views

Unable to match a subtasks to its parent tasks REST API

I am able to get the tasks and subtasks from a SharePoint list using the REST API. How can I match a subtask with its parent task? The following JS inside an AngularJS controller returns two lists, ...
0
votes
1answer
26 views

SharePoint REST API - Fetching folders from subsite

I am new to using SharePoint online REST API's. I started with basics by connecting to SharePoint online via Postman and list folders in a subsite. So I have achieved the first step of connecting to ...
0
votes
0answers
9 views

Is there any api to get anonymous links from a sharepoint site?

I am not able to find any REST apis to get anonymous links information from a selected SharePoint site. That api is not yet available? I have checked in PnPJS site also, and nothing found in that.
0
votes
0answers
22 views

Project Server - Updating notes on a task through REST/CSOM

I've been racking my brain over this for a while and Googling has failed me so I was hoping I could get some help here. I just want to be able to update the Notes field on a Project Task in Project ...
0
votes
1answer
51 views

Sharepoint Online REST Item call returning empty array

I have a Sharepoint Online sitecollection http://tenant.sharepoint.com/sites/test and I have set up an app to be able to get the authentication tokens in Azure AD (Sites.FullControl.All for Sharepoint)...
2
votes
1answer
51 views

Add Sharepoint Online list item using pure JavaScript

I am trying to do the following: I have a Wordpress site where I have created a form. On submit event I want to send the data to my Sharepoint Online list. The problem I am facing is the fact that the ...
1
vote
0answers
16 views

Unable to show progress bar using SharePoint REST API

I am trying use XMLHttpRequest to show a progress bar when uploading files to a SharePoint list via REST api. The same code works on this codepen even without the parser.php file. Just trying to show ...
2
votes
2answers
61 views

Google Organization Chart from SharePoint list items

I created a Google Organization Chart on SharePoint using the answer from the following question on Stack Overflow. https://stackoverflow.com/questions/33796219/organization-chart-from-sharepoint-list-...
0
votes
2answers
40 views

Get ItemCount from Existing View

I have a Task list that I'm trying to query to get the total Active Tasks for the current user. There is a view already built that I would like to use. /_api/web/lists/getbytitle('Tasks')/views/...
1
vote
0answers
47 views

Removing the “Getting Started” webpart with REST API

Is there any way to delete the 'Getting started..' webpart from a workspace (actually the home.aspx) via REST API (or POST request)? Unfortunaly it is not possible to disable the module on the parent ...
2
votes
1answer
24 views

How to find all selectable properties of a list item

If I run the query ..._api/web/lists/GetByTitle('Site Pages')/items, I get a list of properties, but it is not comprehensive. For example, FileRef is not visible in the resulting JSON, but can be ...
2
votes
1answer
163 views

Get the X-RequestDigest Cookie from Sharepoint in Postman

I have some troubles with the sharepoint api and i hope to get some help here ;-) We want to build an app to update sites and lists on a sharepoint website, but unfortunately a needed function is not ...
0
votes
1answer
48 views

SharePoint 2019 Server APIs

I am merging 2 legacy microsoft applications in modernization project. One is CMS site running on SharePoint 2013 and other is .NET 2.0 web application having transactional UI functionality. I am in ...
0
votes
0answers
15 views

REST API to external list not working consistently

I have external content types, which are read operations (item/list) to SQL Server views. I've made external lists from them. There are hundreds of thousands of entries in the table, so I've increased ...
0
votes
1answer
17 views

How to use CSOM, SOAP or Rest API to detect anonymous views of list items for a List?

Let's say I have a SharePoint site with anonymous view enabled for the entire website But I have a List that breaks role inheritance. How do I use CSOM, Rest API or SOAP API to detect if a List has ...
0
votes
0answers
13 views

Connect Sharepoint Excel list to Django API

I am trying to build a solution where I have a SharePoint list in Excel format and I want to populate this list from the contents of a database that could be accessed through a Django Rest API. I also ...
0
votes
1answer
33 views

Upload Files >250MB via Sharepoint REST API

So I am trying to upload Files to a Sharepoint Site via the REST API. I am already using the /Files/Add() Path-Function, but that one is (from what I've found) per design locked to 250MB max and ...
0
votes
1answer
310 views

Getting invalid_request - Token type is not allowed. error while accessing Lists and list Items

I am trying to get SharePoint list and its items by REST API. Below is the approach I have done - Create a App in SharePoint. Got the Client ID, Client Secret. Using the below URL I got the access ...
0
votes
1answer
17 views

Why don't SharePoint's list apis encode serverRelativeUrls?

When calling SharePoint list api's whether it be CSOM, Rest and Soap apis, they all refer to server relative urls without escaping for URLs. When you are using the apis, inevitably you want the ...
0
votes
2answers
907 views

Axios response.data is string of the XML data instead of JSON object

Axios get call receiving the right information but it comes back as a string of the XML data. I need a JSON object. I am grabbing all the tables on the page then I filter through them and then I want ...
0
votes
0answers
42 views

How to authenticate on SharePoint REST endpoint using appid/appsecret from a power automate HTTP action?

I want to perform some SharePoint Online operation using REST from a Power Automate Flow. I want to use appid/appsecret to authenticate, as I don't want to give permission to a specific user on the ...
0
votes
1answer
24 views

Fetch SharePoint folder URL via REST [duplicate]

I have a document library with multiple level folder structure, I want to fetch the server relative URL of individual folder by their name. For example: Folder structure in lib like this: Document ...
0
votes
0answers
138 views

SharePoint REST API - odata $expand is not working on a specific site

I am using SharePoint API to get list items. One of the fields is User Picker. The query looks like this: /_api/web/lists/getByTitle('Actions')/items?$select=AssignedTo/Id,AssignedTo/UserName&$...
0
votes
3answers
126 views

How to get users email address using SharePoint REST API

I am using the following code to get the current logged in user to a SP page. I'm only able to get the Title. How can I get the email address as well? Thank you. // Get current user jQuery.ajax({ ...
0
votes
0answers
28 views

Update field default value on a subfolder REST

I have multifolder structure like that: Opportunities [document library of custom type OPFolder]      OP0026 [folder of custom type OPFolder]         Incoming [normal folder] custom type OPFolder ...
0
votes
1answer
97 views

How can i find the Lookup Column id when i pass the data to REST API?

As shown in some examples I must use lookup column ID when i pass data to Rest API. But I cannot find what the lookup column's id. So How can i add this id to data in rest api? JSON.stringify({ '...
0
votes
0answers
14 views

How to pass Lookup column data to Sharepğoint UpdateList Rest Api?

I have one lookup column and normal columns. I want to change the column's value. There is no mistake when i try to change normal columns. But if i want to change lookup column, I had this error ...
0
votes
1answer
37 views

Trying to upload files using REST

I'm using the following method to write to a SharePoint list using REST with data from a HTML form. How can I modify it to also be able to also upload a files from the form? Thank you. jQuery....
1
vote
0answers
163 views

How to create multiple columns in a SP list using single REST call

I want to create 3 columns in a SP list from my SPFX webpart using REST call. Could you please let me know how to achieve this? I am using below code to create 1 column but instead I want create 3 ...
0
votes
0answers
64 views

I get CORS error in SharePoint. I also changed web-config but nothing happens

I call AJAX request and the browser got CORS error. I tried to add "Access-Control-Allow-Origin" in IIS web.config. But it doesn't work. I have two servers. My AJAX is true only when I have ...
0
votes
2answers
162 views

Get Created By(not Author) user display name from SharePoint Search REST API

I need to retrieve information about who added document to SharePoint. I see that there is field Author. But this field may contains several users(information from file metadata will also be included)....
0
votes
0answers
27 views

Update external data field using REST API

I am uploading files in SharePoint 2013 using REST API. Once the file is uploaded I also set values for some properties of the uploaded file. I am having problems when the field is of type External ...
0
votes
1answer
44 views

How to fetch data from _vti_bin/listdata.svc using node js

I'm having some trouble figuring out how to get data from the _vti_bin/listdata.svc on my sharepoint online site. Essentially I am trying to fetch the data in this listdata.svc file to then insert it ...
0
votes
1answer
130 views

How to read from the Image column in sharepoint Online lists using RestAPI?

In SP Online lists (modern experience), I've added a Image formatting and constraints for publishing column to the list (via site columns), it converted my modern list into classic. Also I am not able ...
0
votes
0answers
9 views

Is there any modern search api introduced in SP online besides search REST api?

Because of the modernization happening in SharePoint online, is there any modification to the search api programmatically? Example as Graph api is there any modern search api available. As I ...
1
vote
1answer
80 views

Get News using REST API

I have a working REST query that grabs all News Posts and News Links. Since the former is considered 'Internal' news, I need a query that can grab these two types of news separately. https://tenanturl....
0
votes
1answer
27 views

React - Sequence of methods

I have written following code to get current user group Ids and later from that Ids I wanted to filter data from SharePoint list. First I want to execute ServiceManager.getRemoteService()....

1
2 3 4 5
46