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

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.

1
vote
1answer
19 views

Send exported Word Document from another application to SharePoint Library (SP2013 on-premise)

First of all, there are similar questions on this forum, but I don't really know if and how I can adopt them to my Use-Case. I am working on a script, which exports from another application (Polarion ...
0
votes
0answers
8 views

The given key was not present in the dictionary

I took a list from 1 site collection, templated it with data. Downloaded the template and uploaded it into another collection. I created a list using this template and it looks like it's working and ...
0
votes
1answer
30 views

How to retrieve data using REST from another Custom List View in SharePoint and return it to Datatable?

function loadDataTable(agentInfo) { $.ajax({ url: vUrl + "/_api/Web/Lists/GetByTitle('TrainingTrackers')/Items?$filter=AVP eq '" + agentInfo + "' or MANAGER eq '" + agentInfo + "'", ...
0
votes
0answers
11 views

GET listitems paged and desc ordered

I have a working REST request which returns items ordered desc by a date (newest first). Now I want to paging the results by using $skiptoken. But because skiptoken works with the last received item ...
0
votes
1answer
16 views

Get List items by specific content type from site and subsites

I'm trying to extract list data from a site (with REST query) and its subsites based on their content type and put everything in a different list. For example from https://mytenant.sharepoint.com/...
0
votes
1answer
31 views

Get all lists on subsites by content type with REST API

I want to get all lists from subsites etc. based on their content type with REST Api. For particular list ("ProjectList") this works: /_api/Web/lists/GetByTitle('ProjectList')/Items? $select=...
0
votes
0answers
17 views

“Undefined” results with REST Query

I have a web part that extracts list items from another list and outputs them in a HTML table. However, the list items that gets output have "undefined" values. I know somewhat why - the call is ...
0
votes
0answers
17 views

Subsite Current User Permissions

How do I display subsites only if the user has access to that subsite? I tried GetSubwebsFilteredForCurrentUser but it isn't working when I tested it on other users. It seems to display all of the ...
0
votes
0answers
8 views

New page with default content page has no page layout

I've created a form to make a new page with a few tags to work with a page layout / pages library I've set up earlier. The form asks for a page title and a 'Resource' tag and generates the url. As far ...
1
vote
1answer
17 views

how to achieve SharePoint search REST API in Salesforce

Salesforce team want to query the documents, stored in SharePoint sites . We believe, need to expose the sharepoint search service to REST API so that the query results can be viewed directly in ...
0
votes
0answers
10 views

What permission level do you need to get data from Project Server REST APIs?

I'm working on a web part that sits on a SharePoint site in a Project Web App instance, and reads project data using the Project Server REST APIs. We recently got a few schedulers involved to be beta ...
0
votes
1answer
15 views

403 on /_api/web/webs if I don't have access to 1 subsite out of many

I have a REST call to mysite/_api/web/webs, I get a successful response, but if i remove permission from mysite/subsite01/ I get a 403, even if I have access to mysite/subsite02/ mysite/subsite03/. I ...
0
votes
1answer
41 views

How implement REST queries in SharePoint?

I'm a dev who tries to learn SharePoint but find it quite hard to navigate around. I want to create a list that gets list item from an external list by their content type. I have made a REST query ...
0
votes
0answers
11 views

Retrieve list items by content type with sp.search

I have a list that I want to populate with items from another list by their content type. For a REST call it would be: /_api/web/lists/getbytitle('MyList')/items?$select=ContentType/Name&$expand=...
0
votes
0answers
15 views

getFormDigest Rest API

I am using A SharePoint Rest API to write to a list on my sharepoint site. I need to get the FormDigestValue from the REST endpoint _api/contextinfo. I see a lot of examples on how to obtain the ...
0
votes
0answers
15 views

Get all users that have particular level of permission on list item

All list items have unique permissions and I want to get all users that have exp. View permission on certain item. Exp. on list item there are 3 users with full permissions, 10 with Contribute, 1 ...
0
votes
0answers
12 views

Adding Remote Endpoints to Installed Add-ins in Sharepoint Online

Can a remote endpoint as explained here be added using the /_layouts/15/appinv.aspx page? If not, what is the correct approach in doing this? This is a 3rd party add-in that we need to integrate with ...
0
votes
0answers
15 views

Return previous records in REST API (opposite of data.d.__next)?

I'm working on a REST API paging and can't seem to figure out how to return the previous record. For instance I'm using $top=100 which displays 100 records at time, then using data.d.__next to jump to ...
0
votes
1answer
16 views

create link to open files (xlsx, pdf, docx) in browser in Office 365

I have created a custom page It makes an ajax call and then results are shown in the page $.ajax({ url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/getbytitle('Document Library Name')...
2
votes
3answers
131 views

Exclude folder from results in SharePoint REST API

I am using a REST API to get the list of all files inside a document library. However, this also brings the list of all folders. Is there a way to filter out the folders and bring only the files ...
0
votes
2answers
35 views

Response status of rest api in sharepoint 2013 workflow for breakroleinheritance is forbidden

I am using http web service to break permission inheritance for current item.for that I am using the following sequence. 1) fetching Request Digest value using following rest api endpoint: ...
0
votes
0answers
27 views

Add users to Group with REST calls

We are using REST (with jQuery ajax) to create groups and add members to the groups. We are using the code below (cleaned up a little for legibility). function createGroup(title,user){ var ...
1
vote
2answers
28 views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
0
votes
1answer
26 views

SharePoint Online - Get User Information & Location

I have built a powerapp form for requesting access to certain groups. This app is then submitted into the SharePoint list. In this list it stores the information based on the user who has created the ...
1
vote
0answers
26 views

Uploading a file using PUT to SharePoint, is there anyway to get the 'Id' in one call?

I'm uploading files to SharePoint (2010) Library using cURL using a command similar to this: curl --ntlm --user username:password -T C:\temp\1807500010.pdf http://website/1807500010.pdf -verbose ...
1
vote
1answer
40 views

How to get site ID without access to central admin or powershell

I was trying to follow this post for setting the owner of a SharePoint group using client side code. Evidently the REST /_api/web/sitegroups(id)/owners endpoint isn't functional. The XML formatting ...
0
votes
1answer
31 views

How to add a DataTable with Drop-down Select Menus

Can I add drop-down select menu to my data table plugins? When I filter Issue_x0020_Status as Active, Resolved and Closed it only shows what ever the user filter. This is my page And Similar to this ...
0
votes
0answers
14 views

Set UseShared to true using REST API

I'm developing a solution to create a new subsite based on the default blank template. I'm using a 2013 workflow for this. I got it up and running, now the next task is to make sure the top navigation ...
1
vote
1answer
34 views

CRUD with SharePoint Sub-Site Document Library

I am creating a python script that needs to create Folder Directories, and upload files into a SharePoint sub-site document library. I currently am using Sharepy for authentication, and the REST API ...
0
votes
1answer
18 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 ...
1
vote
1answer
37 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://...
1
vote
1answer
25 views

SharePoint 2013 Search API not returning png result

I am attempting to search a SharePoint instance using the search api. I have two files in a document library called AddDoc.docx and AddPic.png. However, when I search using Add* only AddDoc.docx is ...
1
vote
0answers
24 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
0answers
15 views

Filter to query SP.UserProfiles.PeopleManager AJAX / REST

I'm trying to find the account name for a specific property in my organization that has been mapped to the userprofiles. It's not part of the siteusers profiles, but has been added to SP....
1
vote
1answer
78 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
1answer
52 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/...
0
votes
3answers
52 views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
0
votes
0answers
11 views

SharePoint 2013 Designer Workflow-How to write multiple user profile property while called them from rest Query

In Designer workflow, I am using below REST query Site_Url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27doamin\acountname%27 Return data is in the below format It's ...
2
votes
1answer
32 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=...
0
votes
1answer
47 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
13 views

Show Lync info after dynamic userfield load via REST

I build a page in Sharepoint Online. By a button click it shows a user from a listitem and it renders it in html using REST API and JS: /_api/web/lists/getbytitle('thelist')/items(1)/...
0
votes
1answer
16 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
22 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 ...
0
votes
2answers
128 views

SharePoint REST API - update metadata Document Library Item when value string includes apostrophe (single quote) character

I want to update a metadata column for an item (document set) in a SharePoint document library using REST API (via VBA). The below (vba) code extract/simplification works fine for simple cases, for ...
1
vote
0answers
19 views

How to Get User-Generated Columns from Ajax

Is it possible to determine which columns in a SP List or document library were custom generated by the user? I'm essentially trying to recreate SharePoint's front end in my app, and I want to add ...
3
votes
3answers
52 views

How to deal with special characters in rest parameter values

I am working on REST call. Everything works fine but my column contains special character & So rest call like below works: http://mydomain/_api/web/lists/GetByTitle('MyList')/Items?$filter=...
0
votes
1answer
32 views

When calling SharePoint REST OData api, what is the biggest value allowed by $top?

I am making calls to get all sub-sites of a site collection using: ${siteCollectionUrl}/_api/site/rootWeb/webinfos But there are 1000's of them. So I need to get them in pages using the $top and $...
0
votes
0answers
28 views

Create Folder structure in list

I would like create a folder structure in a SharePoint list, not library. The first level under root works very well. But the next level didn't work. First step i create the folder at root level, at ...
1
vote
1answer
67 views

Datatable row color based on Rest API results

I have a Rest API call to pull data to create a Datatable. What I'm trying to figure out is how to dynamically color the rows based on information in one of the columns (example here is if the ...
0
votes
1answer
44 views

Azure AD App Only Token - The server was unable to process the request due to an internal error

I'm using adal-node to retrieve a Azure AD App-Only Token. This requires that I have a Azure AD Application, modified the manifest to include keyCredentials, generated on my computer with a ...