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 [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.

0
votes
0answers
29 views

UserInfroItem from REST query not passing to 2013 Workflow variable

I am running an expanded REST query ​against a list in a Designer 2013 workflow. I am trying to get the email address associated with the user display name listed in a people picker field. The query ...
0
votes
0answers
28 views

exclude ExtendedReports in sp.userprofiles.peoplemanager getpropertiesfor searches

I know how to make use GetPropertiesFor to get data about a user. What I cannot figure out is how to exclude ExtendedReports from the returned data. If I get data for a user high in my organization, ...
0
votes
1answer
745 views

System.UnauthorizedAccessException Access Denied REST

Wondering if anyone can help me please, I have some REST code getting all the webs for a site collection, this looks like below: url = _spPageContextInfo.webAbsoluteUrl + "/_api/web/webs?$select=...
0
votes
1answer
464 views

How can I create a alert through SharePoint REST API?

Is there any REST API which can create the alert on a SharePoint List? We have a customized website which user can view files on SharePoint, but when user want to subscribe to a folder or file ...
0
votes
1answer
40 views

Getting assign to by rest

I want to use ajax with rest api in order to get workflow tasks of a user. I use this: _spPageContextInfo.webAbsoluteUrl + "/_api/web/Lists/getByTitle('Workflow%20Tasks')/items?$filter=WorkflowName ...
3
votes
1answer
886 views

What does ViewsLifetime mean?

I want to show hit number for a page. I found Viewslifetime. I am sorting this Descending. So what does ViewsLifeTime means?
0
votes
1answer
90 views

Get column values where filename is x

I'm working with SharePoint API. I'd like to check a status column value, which is changed to "new" when a new document is uploaded and changed throughout our ETL process. I'm accessing the file via: ...
0
votes
1answer
35 views

Copy document between libraries

In library1 that has major versions activated, document A has 30 versions and same document is copied, programmatically, in library2 there are 10 versions. User realizes he made a mistake and wants ...
0
votes
0answers
16 views

How can I match a sharepoint AD Group to an AD group using rest

I am trying to tie together an SPUser account from SharePoint Online to an AD account on premise. I am able to select the user by SharePoint ID but the only fields I get are Title and email. Groups ...
1
vote
2answers
38 views

Refresh a list without page refresh when someone else adds an item

Issue Using REST, I populate a list onto a page. I want the page to refresh the list without refreshing the page whenever a new item is added to the list. Current Shoddy Solution I have 2 GET ...
1
vote
1answer
231 views

GET file with correct name

I'm working on a Word add-in with a form for selecting SharePoint Online documents, using the REST API. At the moment, I was able to download the file directly by the URL following this MSDN article: ...
1
vote
1answer
923 views

“The security validation for this page is invalid and might be corrupted” when trying to make a raw HTTP POST to the “getchanges” endpoint

I want to make a getchanges rest api request using an HTTP client. I am trying both curl and postman and unable to do this. I'm trying to run this curl: curl -X POST \ http://192.16.11.133/_api/...
1
vote
0answers
25 views

Function call not calling synchronously REST

I am trying to create a HTML list with the below code. I have managed to create it. but for some reason the output is not in order. Is the function calls synchronously? when i put alert(heading); in ...
0
votes
0answers
165 views

Is there any limit on SharePoint REST response size?

Is there any limit on SharePoint REST response size? Imagine that the REST query returns 5 000 items and each item contains multiple multiple lines of text fields. e.g. each item occupy 5 000 items x ...
0
votes
1answer
497 views

Delete document from document library on basis of “Document ID” - CSOM or REST

We are developing an API to be called by external application. To have unqiue document ID across Site Collection we have enabled "Document ID service" Using CSOM we have been able to implement ...
1
vote
1answer
391 views

How could I get all root level sites (excluding sub site) using Microsoft Graph API?

I could get all site (including root level site as well as sub site) by using the following url : https://graph.microsoft.com/v1.0/sites?search=* Is there a better way to get all the root level sites ...
-1
votes
1answer
84 views

Get emails from a column in an associated list (lookup list)

I'm trying to create a reusable workflow that will send notifications to users about updated items in lists/libraries associated with a master tracking list. I've got something like this: TRACKING ...
2
votes
1answer
251 views

REST API : different properties list using /_api/Web/Lists/SchemaXml VS /_api/Web/Lists/?

I tried to get the properties of list 0000000000-1111-2222-3333-444444444444 using REST. Spying the urls called from SharePoint insider (a chrome extension to query sharepoint) I see they used two ...
0
votes
1answer
153 views

How could I get items present inside Site Asset of a Team Site?

Through the following url : https://graph.microsoft.com/v1.0/sites/{siteId}/drives I could get all user created document libraries and Documents (a system created document library), but I could not ...
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 ...
0
votes
1answer
85 views

2010 REST Delete List

I have a List that I have been tasked with creating. The idea is to make a "Master View" that joins several other lists from the same site into one. It is my understanding that it is no possible to do ...
0
votes
1answer
2k views

Change user permissions of item with REST api

There is a list in which every item has unique permissions. I used this very helpful topic, where it is described how to break inheritance and create unique permissions and after that to add ...
1
vote
1answer
212 views

Extracting attachments URL from list items

I won't be unique with my question: I just need to get normal URLs to all attachments from SharePoint list items. Unfortunately I can't use JavaScript or any 3rd party solutions (have neither ...
0
votes
0answers
144 views

get distinct values using Rest Api [duplicate]

I am trying to get the distinct values from below code .But I find no luck to move further. Can any one let me know what's wrong in my below code. Because I am trying to group the information to get ...
0
votes
1answer
2k views

How to Bind REST API data into Html dropdown [duplicate]

I had written the below code to bind a values of List column into html drop-down. Can any one help in knowing what's wrong in my below code. <script src="//ajax.aspnetcdn.com/ajax/4.0/1/...
0
votes
3answers
214 views

How to bind the REST API result

Today I got requirement to get the list data using rest and bind to html drop down . I am getting the information by filtering it from browser (_api/web/lists/GetByTitle('Tabletop%20Sessions')/items?...
0
votes
1answer
49 views

REST calls to different items of single lib return responses with different structures

SP 2016 on-prem. I have a test library with bunch of word documents. Calling to part of them return a response like: { "d": { "__metadata": { "id": "716369bb-3f0e-48fb-845f-d4774d6198ac", ...
0
votes
0answers
245 views

Rest api Upload attachments not working for multiple uploads

I am using Rest api to upload the attachments function uploadattachment(itemId, listname) { if ($("#ticketAttachments")[0].files.length > 0) { $($("#ticketAttachments")[0].files).each(...
0
votes
1answer
257 views

REST Call to pull data from Parent Site to Subsite

I'm currently trying to pull data to my sub-site from a list within the Parent site using SharePoint Designer 2013 workflows. The current Response Code is merely saying "Forbidden" so I can ...
0
votes
1answer
401 views

SharePoint 2010 REST - Multiple Checkbox Select - Set via Jquery/REST

Good morning, I'm trying to set a multiple select (checkbox) SharePoint item via bootstrap form independent of SharePoint's forms. I can get everything to work except passing the joined checkbox ...
1
vote
1answer
35 views

How to use REST get a specific list when you don't know the full name of the list?

In SP2013 on-prem, how does one use REST to get names of specific lists when you don't know their names but you do know part of their name. For example, if I have a list named MRe-PRv2Forms, how ...
-1
votes
1answer
72 views

How do I get the text from this HTML? [closed]

In a SharePoint scripting web part How do I get to the actual text (All systems...) from this in JavaScript (It was read in from a list using REST) ? "<div class="...
2
votes
1answer
362 views

SharePoint2010 /_vti_bin/listdata.svc

I was trying to mimic a search site via listdata.svc due to the incapability of OOTB Search Result webpart. Is there'a way to utilize KQL or any other way to allow users to search for a sentence? ...
0
votes
0answers
166 views

Search API sortlist order not working

I have trying to fetch items for a particular content type and trying to sort the result based on two columns: sortlist=%27DueDate:ascending,ProjectTitleOWSCHCS:ascending%27 Both the fields are ...
0
votes
1answer
85 views

I cannot get the JQuery Marquee plugin on SharePoint Online to work. Nothing is displayed

I am using Mikael Svenson's script editor for the Modern UI in SharePoint Online. The code below seems to run without any errors, but there is no list items going across the page like the old HTML ...
1
vote
1answer
133 views

Populate HighCharts from Array created from SharePoint List

I have a SharePoint list with data that I need to display on 9 different charts on a single page. I have created a couple arrays, one to identify the list item to get, and one to identify the chart ...
1
vote
1answer
39 views

grouping the returned data using REST API

can i use grouping to eliminate duplication on the returned values using REST API ?or is there any other way the remove\delete duplicated values using REST?
0
votes
1answer
249 views

What are the limitations on a “single-line-of-text” column for sharepoint REST filters?

So, I am messing with my REST queries again, and was having some of these random errors. After some testing, it was determined that it appears that whenever a filter was applied to the title field, ...
-1
votes
0answers
167 views

What should I pass to SP.RequestExecutor (how to log into Sharepoint using javascript + REST only)

I want to query the list of lists of https://localsharepoint.ourdomain from http://localhost:1234/MyVisualStudioWebApp/foo.html (or even d:\foo.html) In foo.html I'll ask for login/password for the ...
0
votes
1answer
122 views

Get id of newly created item after HTTP POST (cross-site)

I know my HTTP call is working fine; I can create an item in another site. The problem: I am trying to retrieve the newly created item ID, to use in a link included in an email. So I tried to create ...
1
vote
2answers
300 views

Extracting all Sharepoint Usernames (Lookup values) from a People/Group field

Currently I have a Person/Group column called Project Team Members that allows you to add multiple SharePoint users to it. All i'm looking to do is filter the list view based on the current logged in ...
1
vote
1answer
780 views

SharePoint REST and Power Apps

How I can use SharePoint REST API in Power Apps using Custom Connectors? I am following this article to create postman collection which is successful, but I am not sure how to integrate this in Power ...
1
vote
1answer
766 views

How to read large file in chunks using REST api

I want to download the large files(more than 10MB) in chunks. I didn't find any method in CSOM. How can I get the large file in chunks? Please suggest the solution. Thanks in advance .
0
votes
1answer
104 views

Office 365 - Yammer REST API - Rate limited due to excessive requests

In our project we are using Yammer REST API for getting yammer search results. We are using JMeter tool for load testing in our application when the tool tries to send more than 30 API calls per 10 ...
0
votes
1answer
593 views

SharePoint REST API filter of string with space

I have a list with columns FirstName and LastName. Using API query, I am able to search for the first name or the last name. i.e.: _api/web/lists/getbytitle('Employee')/items?$filter=substringof(%...
0
votes
2answers
643 views

Rest API order by for Rootfolder won't work

I try to order a Rest API query (SharePoint Online) via CSOM. Unfortunately it won't work. I want to get the files & folders of the rootfolder of a library sorted by name. url: baseUrl + "...
4
votes
1answer
2k views

Create text file and upload it to document library using REST API with JavaScript

We need to create a text file and upload it to a document library using REST API. The contents of text file will be created dynamically by reading information from multiple lists. The operation needs ...
1
vote
1answer
62 views

REST, and IE Explorer [closed]

I using a simple jQuery add and remove hide class to display an animated awesome font to indicating file request is loading - page opens with the div containing the animated awesome font with hide ...
1
vote
1answer
200 views

How to get the onedrive files that were Shared with me using JSOM or REST or in SPFx

Is there any api available in REST or JSOM to bring the shared documents to me in SharePoint using SPFx framework. I came to know that we can get details with Graph API. But I am more interested in ...
4
votes
1answer
176 views

Get number of views of blog post in Blog Site using Javascript Object Model or Rest API

How to get the total number of views of blog post in Blog Site using Javascript Object Model or Rest API ? Blog Post view will be count only one time for one user.