Stack Exchange Network

Stack Exchange network consists of 174 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
25 views

Sharepoint 2016- Anonymous Access Rest Post (Javascript)

I have a publishing site on sharepoint 2016 that requires anonymous access. We have set it up and can get anonymous access rest calls GETting content from the site, however we are getting a 401 ...
0
votes
2answers
409 views

REST API to, given a site URL, get the top level site of that URL (sharepoint 2010, 2013 and 2016)

I've got a sharepoint site with multiple site collections. / site collection: http://mysite/ <--- root site in `/` site collection http://mysite/subsite1 http://mysite/subsite2 /sitecol1 site ...
0
votes
2answers
373 views

Rest api to get sharepoint version

I have 2 different programs that are built on the Microsoft client DLLs: Version 2010 - Uses the Microsoft.SharePoint.Client.dll Version 2013 - Uses the Microsoft CSOM 2013 dll. I am given a web URL ...
0
votes
1answer
479 views

Sharepoint/Get Document Set Properties using Rest

I created a document set with properties like 'name and description' as string , 'cover photo' as href. Each document set contains folders inside. I can get the name of the folders inside the ...
2
votes
2answers
407 views

SharePoint Online - User Exist in UserProfile but not in _api/web/siteusers

By a Rest query I consult .../_api/web/siteusers to obtain the ID of all users and then I consult UserProfile to obtain more information about each user. But sometimes there are users does not exist ...
0
votes
0answers
21 views

Hosting webservices on sharepoint?

I'm loosing my mind with an issue about hosting wcf in SharePoint. I'm not able to reach my webservice, I saw on it on my SharePoint site but when I'm clicking on it I have an error message So i have ...
0
votes
0answers
121 views

How can I use FinishUpload to close a chunked file upload when I have 0 bytes left?

I'm uploading files, in chunks, to SharePoint Online through the REST API. I am doing this via the StartUpload, ContinueUpload and FinishUpload methods and passing them a chunk as a byte[]. I have ...
1
vote
0answers
59 views

Is using an “async : wait” construction a common prectice for SP developers?

I'm just starting: (1)to code (2)for SP (3)with javascript(3) ... and my first choice was a JSOM. Once i've been trying hard to get a value from executeQueryAsync call and set it to local/global ...
0
votes
0answers
48 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
0answers
43 views

How to extract the Month Name from SharePoint Column using REST

I am having the Single Line Text Column (OurTrainingSession) where it is storing the date values in the format of MM/DD/YYYY (12/30/2018) . Along with some string values like "Completed" , "...
0
votes
0answers
38 views

How to bind the controls and assign the values via virables in html table using REST API

I am writing Rest API to Retrieve SharePoint List Items.And I followed below URL. http://mundrisoft.com/tech-bytes/how-to-read-more-than-5000-list-items-in-office-365sharepoint-2013/ And I would ...
0
votes
1answer
2k views

Deleting Files with REST API

I'm developing a SharePoint App where I need to delete a number of photos that the user will select, so I have a function that I pass an array with the URLs of the photos that will be deleted, but I ...
0
votes
0answers
21 views

Get all specified files by name from SharePoint list

Using SharePoint REST API, I am able to get a single file by passing in the filename to /Files(), e.g., Files('sharepoint_test.csv'): https://site.sharepoint.com/teams/dg/global/_api/web/...
0
votes
2answers
206 views

Convert CAML query to REST API

I had used the below caml query in my JSOM code and I was getting 2000 items .When I tried using REST I get 99 total items. camlQuery.set_viewXml("<View><Query> <Where> <And> &...
2
votes
0answers
442 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-...
0
votes
1answer
24 views

Workflow REST query is using old data

I have Designer 2013 workflow that is looping through a list querying for data with REST. A condition is set where if one field is greater than today's date, and a count field as set to 1, an email is ...
1
vote
0answers
224 views

How to write a REST query to obtain all tasks within a Workflow Task list?

I'm trying to write a REST query to obtain all tasks associated with a given list item. The workflow task list is named 'Workflow Tasks'. Under the 'Related Content' column, one can see the title of ...
0
votes
1answer
400 views

403 When trying to add a list item with REST API

I've been trying to get this function to post an item to a Sharepoint list, however it's been coming back as a 403 each time. The formDigest value populates each time I console log it and I can see it ...
1
vote
0answers
47 views

Addroleassignment uses a subsite specific principal guid using Rest

I am trying to add role assignments to SharePoint Online to a folder on a personal sub site. I looked up all the users against the parent site and I have a guid of 282. When I try and assign a new ...
0
votes
2answers
923 views

Rest API list greater than 20,000 items

I have a list that currently has around 18,000 items. will my rest query continue to work once it breaks the 20,000 mark? I found this similar question for when the limit was 5k: Approaches for ...
1
vote
1answer
405 views

Update document library column value for given row ID

I'm trying to update the status column in a document library where the name is "sharepoint_test.csv" and I'm following this tutorial to do it. URL: POST:URL https://mycompany.sharepoint.com/...
1
vote
1answer
89 views

Add list view to page at load time via JavaScript?

When editing a web part page, there is the option to add a web part to a zone, where you can pick a list or library, and from that web part's "Edit Web-Part" selection, change the list view displayed ...
0
votes
0answers
22 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
24 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
641 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
372 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
791 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
75 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
122 views

Getting : The 'Value'='<null>' part of the cookie is invalid. From SpoAuthUtility

I'm using the class SpoAuthUtility in ordre to create folder thanks to SharePoint Online Rest API and I'am getting this error: "Exception: The 'Value'='' part of the cookie is invalid. at System.Net....
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
37 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
173 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
762 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
147 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
417 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
316 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
71 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 ...
1
vote
1answer
216 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
105 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
1k 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
74 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
1k 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
183 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
104 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
168 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
45 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", ...