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

Sharepoint O365 pnp js get all users

I know this has been asked several times but I haven't found a viable solution. I am building a spfx webpart where I want to display every single user with name, title, email etc. I am using the pnp-...
1
vote
1answer
40 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, which is based on a workflow script. I am working on a script, which ...
0
votes
0answers
61 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
54 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
1answer
29 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
64 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
23 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
9 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
19 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 ...
1
vote
0answers
17 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
27 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
53 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
31 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
1answer
45 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')...
3
votes
3answers
234 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
135 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
35 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
69 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
45 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
59 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
167 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
70 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 ...
1
vote
1answer
80 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 ...
1
vote
1answer
33 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
112 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
39 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
28 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
17 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
247 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
67 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
158 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
12 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
57 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
108 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
22 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
19 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
26 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
328 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
112 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
37 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 $...
1
vote
1answer
141 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
98 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 ...
0
votes
1answer
404 views

How to get Person or Group user details from REST API query

I am having trouble trying to get the "Title" portion of a Person or Group field from SharePoint Designer 2013 workflow using a REST API query. I have my workflow built similar to the one in this ...
1
vote
0answers
97 views

Rest API not able to get items from list which has crossed the threshold

I am querying list using REST. API: siteURL = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Test')/items?$top=5000&$filter=((BBEmail eq '"+_spPageContextInfo.userLoginName+"')...
0
votes
0answers
17 views

Send date of newest list entry via Webservice to other application

We are linking a SharePoint-List (SharePoint 2013) in another application (Polarion ALM) in the left-navigation bar. Now we would like to add a notification setting in this other application ...
0
votes
1answer
147 views

How can I use another user credentials in SharePoint Rest API call JavaScript?

var data = $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + "/_api/ProjectData/Resources", type: "GET", dataType: "json", headers: { Accept: "application/json;odata=...
3
votes
0answers
371 views

Using Rest API call to get list item in SharePoint 2010 workflow

I am trying to get list item using REST API syntax in SP Designer workflow. The url format is as follows: https://example.com/_api/web/lists/GetByTitle('List%20Name')/items(2952)?$select=...
3
votes
1answer
54 views

Use SPQuery or REST API to join two lists

I am using SP 2013 and trying to joint two lists which are linked through a lookup field in the second list. I have tried several things like XML and SpSiteDataQuery but I am not familiar with using C#...
0
votes
1answer
17 views

App API Access to Single Site Collection

Is it possible to setup Azure based App permissions to only a single Site Collection? We are putting together a small application which will scrape external documents from various sites and dump them ...