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

400 Errors moving files by REST API (Long URL)

In SharePoint Online, I'm trying to move files that are in a folder in a library to another folder in another library. I'm running a console app to do this so using the API. I'm mostly there but ...
0
votes
1answer
38 views

Unable to Execute REST API' StartWith for DateTime Column

I had written the below piece of REST API to filter the data for SharePoint DateTime Column , But I find no luck to execute Also, When I use startswith for SinglelieText column it's working fine. ...
0
votes
0answers
199 views

How to call REST api in provider hosted app

I want to call the Site Design apis in my provider hosted app to install site designs. Site design apis are REST apis. But when I trying to call it is always giving me the 403 forbidden error. I am ...
0
votes
0answers
14 views

Unable to get Calucaulated Field value from SharePoint Column

I am having SharePoint Calculated column where based on some condition's column is holding Names of Months's (Jan, Feb, March..) and it is SingleLineText Can any one please do help me how can I make ...
0
votes
2answers
27 views

How to run multiple REST's in a Function

I am trying to run multiple queries in REST. But only 1st query is getting executed. Can anyone let me why so. And how can I run multiple Rest's in single function? function Get_CountofCountries() { ...
0
votes
1answer
93 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
1answer
846 views

How to get all the files from specific sharepoint folders and subfolders using CSOM

We have a site which has few document libraries and each library has n number or folders and sub folders. I want to get all the files only from the folders or sub folders which name is ABC and XYZ ...
0
votes
0answers
88 views

SharePoint/Project Server 2016 REST query

I am trying to be efficient in my _api/projectdata rest query and get specific results from timesheet actuals. However, in someones great wisdom they didn't provide something as simple as the ...
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
2answers
823 views

Filter null value for SharePoint column using REST

I am trying to fetch the data based on my "EmpData" list. I am able to get the exact rows for the below Rest API query till I don't include "Null" filtration in my below rest var oDataUrl = siteUrl + ...
0
votes
1answer
394 views

How to create a subsite with site template with REST api?

I am having a site with some lists and libraries. I have saved this site a site template. Now I want to create a new sub site with programming. I know we can create from the user interface, but I want ...
1
vote
0answers
37 views

sharepoint next url give repeat data again

I am using sharepoint REST api. i have query like below: https://<SITEURL>/_api/lists/getbytitle('listname')/items?$select=ID,StartDate,Modified,DueDate,Body,Status,Assigned/ID,Assigned/Title&...
0
votes
1answer
47 views

how to add group into people or group column using jsom/rest

I want to insert group into list column .how to add share point group into people or group list column using JavaScript or Rest API .
1
vote
0answers
137 views

REST API call Orderby - JSON changes my order!

So the below function, gets data from a list in a certain order - by SortOrder column. If i go to the url in my browser and run it the order is as expected, however the output (JSON) seems to then ...
2
votes
1answer
447 views

Document Thumbnail via rest api (sharepoint framework)

I am using rest api to get the items from a document library: /_api/web/lists/GetByTitle('${listName}')/items?${queryString} However none of the returning properties is a thumbnail image of the ...
0
votes
3answers
1k views

Sp List item versions using REST

Is it possible to retrieve all versions of list items using REST? or at-least any other way of achieving it using javascript/jquery? I have followed https://stackoverflow.com/questions/24423657/...
0
votes
0answers
25 views

Workflow returns completed function but it never actually runs the workflow

I'm using the scripts below to run a work on a specific sharepoint site. Everything seems to work at it should since completefunc is being triggered. But if I look at the items worksflows then the ...
0
votes
1answer
28 views

Discover Project's Associated Folder with REST

I'm using Sharepoint 2013 along with Project Server. When we create a project via SP, it creates a Project and a Folder for documents of that project. The thing is, if the name of the project is ...
0
votes
0answers
79 views

2013 - Retrieve all V3Comments via REST API

I'm using SharePoint Foundation 2013. I've created a page with a CEWP. This CEWP shows an item from a Task List, where is possible to add comments to an item. I've noticed that comments are stored ...
0
votes
1answer
483 views

SharePoint API getfilebyserverrelativeurl saying doesn't exist

I have a sharepoint site, let's say http://sharepoint.company.com I'm trying to pull data from sharepoint.company.com/sites/one/sales/retail_locations.aspx when I perform a get request on http://...
0
votes
3answers
168 views

Not able to get ID of user using their user name - error in _api/web/siteusers

I am trying to find the ID of the user using _api/web/siteusers in Office 365 I get the below error User cannot be found But, when I add user to some people picker field in list item, it starts ...
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
0answers
145 views

Can anyone confirm that SP.MoveCopyUtil.MoveFolder does not allow movement between libraries even in the same site

I've been struggling to move a folder (actually a document set) between libraries using the SP.MoveCopyUtil.MoveFolder method through REST. SP.MoveCopyUtil.CopyFolder works but .MoveFolder gives "...
2
votes
2answers
490 views

Filtering Calendar Items Using REST API

I'am trying to get calendar items and filtering by EventDate and EndDate fields using rest api. DateTime field filtering works fine on other lists but I can not filter calendar items by EventDate and ...
0
votes
1answer
59 views

Rest api return elements outside the filter

I'm having some problems with my filter / rest call. I'm trying to get the items that match some criteria in a list but it returns way to much. ?$select=Employee_x0020_No_&$filter((...
0
votes
0answers
229 views

Sharepoint 2013 REST API slow

I have a sharepoint List which contains 20000+ records, I am using REST API to retrieve items based on some filter its working fine, but it take nearly 10 secs for retrieve just 600+ records, I don't ...
0
votes
1answer
231 views

Need help with url and rollup image fields in sitepages using SPFX with REST

I'm new to SPFX and still trying to find my way around. At the moment I'm struggling to access particular fields from site pages using REST. I realize this is a n00b request, but any help would be ...
0
votes
0answers
20 views

SPscripts dao additem with lookup value

I'm using this code to add an item to a list with dao var siteUrl = _spPageContextInfo.webAbsoluteUrl; var dao = new SPScript.RestDao(siteUrl); var ReadMe_Document = dao.lists("ReadMe_Document"); ...
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
533 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
464 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
634 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
563 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
22 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
139 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
66 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
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
0answers
51 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
43 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
23 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
243 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
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-...
0
votes
1answer
25 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
252 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
486 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
69 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
1k 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
2answers
595 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
114 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 ...