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

Using the Representational State Transfer (REST) interface provided by SharePoint

0
votes
1answer
12 views

How to use SharePoint 2010 REST api to update column values?

I just found the REST API for SharePoint 2010. I'm trying to use cURL to call the API to update empty columns. I've managed to use the links below to access various information for my company's test ...
0
votes
1answer
12 views

Return items within Date Range

My array: urlArray = dataArray.map(function(item){ return { Id: item.Id, Title: item.Title, ...
0
votes
1answer
40 views

How to Move folder using REST API

I am trying to Move folder to different location within Document library using REST API. What i have done is:- I have created SharePoint add-in through which i want to move folder from one location to ...
0
votes
1answer
15 views

Rest API Update Person Field (Multi user), Lookup Field(Multi lookup), Taxonomy Columns(Multi terms)

how do i update complex fields like person/Group, Taxonomy, Lookup in rest api? any code samples would definitely help me?
0
votes
0answers
8 views

Add webpart to page using a workflow?

Does anybody know a way to add a webpart to a page using SharePoint workflows? As far as I have read so far there's no endpoint for it in the REST api. I have a working solution using CSOM, but that ...
1
vote
1answer
30 views

Look Up value through REST without select or expand

Can we get the lookup value from SharePoint list through REST without using the query operators (select/expand) ?
0
votes
0answers
21 views

How to edit User Properties in the User Information List on SPO?

We've deleted users in our AD/AAD and would like to change some properties of these users in the User Information List. However, we do NOT want to delete them from the UIL. I have tried to do it via ...
0
votes
1answer
34 views

How to change null value to empty using REST

How to change null value to empty string in Sharepoint custom script? Here is my code. $(document).ready(function() { getUserListItems() }); function getUserListItems() { var ...
0
votes
2answers
34 views

Multiple filters on a large list using REST

I am running into an issue when using the listdata.svc REST API on large lists. I have a query that looks like: .../_vti_bin/listdata.svc/MyList?$filter=(substringof('<query>',LastName))or(...
1
vote
2answers
29 views

API results changes

I am using this rest api in SharePoint online "web/lists/GetByTitle" to get list item using javascript. It was working nicely before but suddenly somehow the format changes when I am trying to get ...
0
votes
2answers
42 views

How do I return the subsite Link URL for each subsite? Right now, it only displays the title of each subsite

This is what I have so far to basically get all of the subsites but I cannot find a way to link each subsite to it's own subsite url.
0
votes
1answer
31 views

How to sort SC results from search REST API

I need to sort my list of sites retrieved by search rest call but when trying to perform the action the list is not sorting. if I go to the xml I can see a property Title on which I should apply the ...
0
votes
1answer
40 views

AD error AADSTS90124 when accessing Office 365 SharePoint Online

From my web api on trying to call the Sharepoint REST API I am requesting for an on-behalf of access token: string[] sharepointScopes = { "https://tenantid.sharepoint.com/Files.ReadWrite.All", "...
0
votes
2answers
33 views

File properties not updating using rest api

I'm trying to update file metadata in document library using rest api. I'm getting Success alert but file's Title is not getting modified. below is code, function updateFileMetadata() { var ...
0
votes
1answer
44 views

REST API - List view threshold

We have a list that is now over 5000 and the following stopped working. All the fields used in filters are indexed var requestPendUri = webAbsUrl + "/_api/web/Lists/getByTitle('LeaveRequest')/Items?$...
0
votes
1answer
15 views

Migrated infopath form does not find UDCX file for rest query when opened in the browser

We have migrated / moved some site, to a different Sharepoint location. Previous status: site was a root master site on a collection. Updated status: site is a subsite on a different site ...
1
vote
1answer
27 views

Update attachment file in SharePoint using custom JavaScript

Anybody know how to update attachment file in list item using javascript? Any idea are so much appreciated.
0
votes
0answers
9 views

I have a excel sheet which has information about fields and path of specific document. I want to update the document fields. How can I do in CSOM?

I have document library and it has many subfolders under subfolders. And they have their document file and some fields. I have a excel sheet which has information about fields and path of specific ...
0
votes
0answers
20 views

Document properties set using SharePoint REST API, are not reflected in Word quick parts

We have a document library, to which we upload documents via custom build UI, facilitated by the SharePoint Rest API. During document upload, some of the document properties need to be updated and ...
1
vote
0answers
33 views

Call to Search REST Api with jQuery results in 401 Unauthorized

I have been trying to make a call through jQuery to the Search REST API but I'm always getting' 401 Unauthorized, this is my code var siteUrl = "http://myspserver:27180/sites/eyksmainportal"; $(...
0
votes
1answer
16 views

How to obtain field description using REST?

My coworker is trying to get the text from the description for a single line of text field using REST. We have so far been unable to find any methods that allows us to access it. We know how to get ...
0
votes
0answers
15 views

How to return the last item modified from each queried list using Search query api?

I would like to query all lists across different site collections based on a specific content type, but getting only the last modified item. Using Rest api and caml query, can be achieved, but that ...
1
vote
1answer
25 views

How to retrieve items from large list using rest API?

I have a list having approx 10000 items, I am trying to retrieve items filtering by 'UserEmail' column, using REST api. http://SpServer:1122/sites/Large-List-PORTAL/_api/web/lists/getbytitle('MyList'...
0
votes
0answers
11 views

Uploading base64 stream To SharePoint Online Via Rest

I have a requirement to take a file (base64) and upload it to SharePoint Online document library using a call to the RESTful endpoints. When I do this the file ends up in SharePoint Online document ...
1
vote
1answer
32 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
17 views

SharePoint online REST API - not showing all files

I'm using the following REST endpoint for getting all items from a list: https://myCompany.sharepoint.com/sites/portal/myName/_api/web/Lists/GetByTitle('MyFolderTitle')/Items?$select=FileLeafRef,...
1
vote
0answers
23 views

Sharepoint Online REST API - cannot get .aspx files

I'm using a Java app to get files from sharepoint online. I'm using the following REST API endpoint: apiUrl = BASE_API_URL + "/web/Lists/GetByTitle('" + sharepointList + "')/Items?$select=...
0
votes
1answer
42 views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...
1
vote
1answer
45 views

SP Online REST API Change the Content Type of a Document Library Item

I would like to change the Content Type of items in a SharePoint On-Line Document Library, using VBA and the REST API. I would like to change existing Folders to a custom Content Type, derived from ...
0
votes
0answers
15 views

Get systemupdate in SharePoint workflow REST call

I am using SharePoint workflow 2013 with REST calls Is it possible to get SystemUpdate in Rest call? Best regards
0
votes
1answer
50 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/...
1
vote
2answers
26 views

Sharepoint REST API Download File Using NodeJs

i'm trying to save file to my drive using NodeJS as backend. So far, i managed to access https://${sites}/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents')/Files('test.xlsx')/$value and ...
0
votes
0answers
21 views

SharePoint folder item count using rest api [duplicate]

How to find the total document count present inside a document library folder, we can get total count in document library itself ! /_api/lists/getbytitle('lisname')/itemcount !!! Is it possible to ...
1
vote
2answers
34 views

Sharepoint REST API 403 Error

I've setup an App in Azure using instructions from various places, including: http://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/ http://tech.bool.se/basic-rest-request-sharepoint-...
0
votes
0answers
24 views

Calling SharePoint /_api/$batch and passing in complex object type to POST request

Looking at how SharePoint move items using the Network tab in chrome, the items get moved using _api/site/CreateCopyJobs. This returns result in type=Collection(SP.CopyMigrationInfo) This contains ...
2
votes
2answers
48 views

C# console call sharepoint online rest api with credentials problem

My goal is to call REST API and retrieve specific folder and files metadata to specific site. I wrote a console application in C#. The SharePoint site is multi-factor enabled and I can get the site ...
0
votes
1answer
29 views

Retreiving files' meta-data via API lacks data on some deployents

I'm using API call /GetFolderByServerRelativeUrl('/path/to/folder')/Files?$select=ListItemAllFields/ID,ListItemAllFields/FileRef,Properties&$expand=ListItemAllFields,Properties&$top=10&$...
0
votes
0answers
30 views

How to fetch data from a different site collection SharePoint site using restapi

Hi am trying to fetch data from a different site collection site using restapi. $http({ url: "http://test.com/sites/test"+ "/_api/lists/getbytitle('TestList')/items", method: "GET", ...
2
votes
1answer
27 views

orderby Created is not working in SharePoint rest api

I am trying to orderby Created date in SharePoint Rest api Below is the url that I use /_api/web/getfolderbyserverrelativeurl('style%20library/Gallery')/Files?$expand=ListItemAllFields&$orderby=...
-1
votes
1answer
49 views

Is it posible to upload file in Lists Attachments in SharePoint in custom way

Is it posible to upload file in Lists Attachments in SharePoint in custom way I already tried using REST and JS but I am facing an error and it can't upload if it's posible kindly suggest what way to ...
0
votes
1answer
46 views

Expand Multiple Lookup field whit Microsoft Graph

How can I Expand a Multiple Lookup field whit Microsoft Graph. I need to get all fields from a multiple lookup field. Thanks.
2
votes
2answers
61 views

How to attach file in sharepoint I am using that function but its error [duplicate]

What is the problem with this? Im trying to attach file in SharePoint. <!DOCTYPE html> <html> <head> <title>Sample</title> <script type="text/javascript" ...
1
vote
2answers
20 views

Attachment File using REST was failed to upload with the problem of SP.RequestExecutor.js

How can I add attachment in SharePoint I am stuck on this problem hopefully can help me to proceed this problem. I will so much appreciate your help. Thank you.
0
votes
1answer
40 views

A value without a type name was found and no expected type is available

I want to update my fields: { "Activitiy": [ { "LookupId": 110, "LookupValue": "110" } ] } But I got an incorrect response. How to ...
0
votes
0answers
21 views

SharePoint Client Credential flow

I have an app service that runs every night, updating information in SharePoint libraries via REST. Currently I authenticate within a user context, but actually this is not necessary since OAuth 2.0 ...
0
votes
1answer
40 views

Datatables Rest filter count on Sharepoint

I've got a SharePoint site that I'm running some Rest API queries on and filtering results. I was just wondering if anyone had a quick tip on if its possible to pull a count from the following code ...
0
votes
1answer
15 views

How to run function on every object REST call returns or active one?

Missing one important component here. I'm making a REST call with jQuery ajax, and would like to know how to run my if statement for all items or the current active item [this] instead of just the ...
0
votes
0answers
20 views

SharePoint Rest API - not able to get “Form Data” property of a list item

I am trying to get a field named "Form Data" using Rest API I tried the below url https://site.sharepoint.com/sitename/_api/web/Lists/GetByTitle('List Name')/Items(5581)?$select=FormData I got the ...
1
vote
2answers
40 views

Couldn't update list item in SP 2013 using Rest

I am trying to update a field in my list but I keep getting this error: "A type named 'SP.Data.ttcuAnnListItem' could not be resolved by the model. When a model is available, each type name must ...
0
votes
1answer
13 views

Get last major version of page with all custom field values using JSOM/REST

We want to access last major version of page with all its OOTB & custom fields using JSOM/REST. I can able to get only version number & url only but we need all fields. Please help. Thank ...