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
223 views

Rest api Upload attachments not working for multiple uploads

I am using Rest api to upload the attachments function uploadattachment(itemId, listname) { if ($("#ticketAttachments")[0].files.length > 0) { $($("#ticketAttachments")[0].files).each(...
0
votes
0answers
98 views

How to get favorite office 365 groups using MS Graph

We can list of methods in MS Developer Documents for MS Graph API. This is too good. But I didn't find any method saying getFavorite groups or something similar to this. When I can my groups from the ...
0
votes
1answer
230 views

REST Call to pull data from Parent Site to Subsite

I'm currently trying to pull data to my sub-site from a list within the Parent site using SharePoint Designer 2013 workflows. The current Response Code is merely saying "Forbidden" so I can ...
0
votes
1answer
335 views

SharePoint 2010 REST - Multiple Checkbox Select - Set via Jquery/REST

Good morning, I'm trying to set a multiple select (checkbox) SharePoint item via bootstrap form independent of SharePoint's forms. I can get everything to work except passing the joined checkbox ...
0
votes
0answers
195 views

Unable to put “label” from Managed metadata field in SPFX using rest

So i'm facing this problem that I don't know how too solve..I want to get the managed metadata value from my document library using rest API. All other fields are being retrieved without a hitch but ...
0
votes
0answers
36 views

Preserving file ModifiedBy and TimeLastModified with pure REST and provider hosted app

I'm using pure REST calls to interact with SharePoint from Java (not JavaScript). How can I set/preserve the ModifiedBy and TimeLastModified information of files? Here's the file information (I ...
1
vote
1answer
34 views

How to use REST get a specific list when you don't know the full name of the list?

In SP2013 on-prem, how does one use REST to get names of specific lists when you don't know their names but you do know part of their name. For example, if I have a list named MRe-PRv2Forms, how ...
-1
votes
1answer
57 views

How do I get the text from this HTML? [closed]

In a SharePoint scripting web part How do I get to the actual text (All systems...) from this in JavaScript (It was read in from a list using REST) ? "<div class="...
2
votes
1answer
330 views

SharePoint2010 /_vti_bin/listdata.svc

I was trying to mimic a search site via listdata.svc due to the incapability of OOTB Search Result webpart. Is there'a way to utilize KQL or any other way to allow users to search for a sentence? ...
0
votes
0answers
151 views

Search API sortlist order not working

I have trying to fetch items for a particular content type and trying to sort the result based on two columns: sortlist=%27DueDate:ascending,ProjectTitleOWSCHCS:ascending%27 Both the fields are ...
0
votes
1answer
76 views

I cannot get the JQuery Marquee plugin on SharePoint Online to work. Nothing is displayed

I am using Mikael Svenson's script editor for the Modern UI in SharePoint Online. The code below seems to run without any errors, but there is no list items going across the page like the old HTML ...
0
votes
0answers
26 views

Programmably copying a OneNote Notebook

Background: So I have created a request system in SharePoint which users can upload documents to a document library. When the request is made a folder is created and named based on a couple of input ...
1
vote
1answer
106 views

Populate HighCharts from Array created from SharePoint List

I have a SharePoint list with data that I need to display on 9 different charts on a single page. I have created a couple arrays, one to identify the list item to get, and one to identify the chart ...
1
vote
1answer
37 views

grouping the returned data using REST API

can i use grouping to eliminate duplication on the returned values using REST API ?or is there any other way the remove\delete duplicated values using REST?
0
votes
1answer
231 views

What are the limitations on a “single-line-of-text” column for sharepoint REST filters?

So, I am messing with my REST queries again, and was having some of these random errors. After some testing, it was determined that it appears that whenever a filter was applied to the title field, ...
0
votes
0answers
153 views

What should I pass to SP.RequestExecutor (how to log into Sharepoint using javascript + REST only)

I want to query the list of lists of https://localsharepoint.ourdomain from http://localhost:1234/MyVisualStudioWebApp/foo.html (or even d:\foo.html) In foo.html I'll ask for login/password for the ...
0
votes
1answer
117 views

Get id of newly created item after HTTP POST (cross-site)

I know my HTTP call is working fine; I can create an item in another site. The problem: I am trying to retrieve the newly created item ID, to use in a link included in an email. So I tried to create ...
1
vote
2answers
250 views

Extracting all Sharepoint Usernames (Lookup values) from a People/Group field

Currently I have a Person/Group column called Project Team Members that allows you to add multiple SharePoint users to it. All i'm looking to do is filter the list view based on the current logged in ...
1
vote
1answer
654 views

SharePoint REST and Power Apps

How I can use SharePoint REST API in Power Apps using Custom Connectors? I am following this article to create postman collection which is successful, but I am not sure how to integrate this in Power ...
1
vote
1answer
649 views

How to read large file in chunks using REST api

I want to download the large files(more than 10MB) in chunks. I didn't find any method in CSOM. How can I get the large file in chunks? Please suggest the solution. Thanks in advance .
0
votes
1answer
93 views

Office 365 - Yammer REST API - Rate limited due to excessive requests

In our project we are using Yammer REST API for getting yammer search results. We are using JMeter tool for load testing in our application when the tool tries to send more than 30 API calls per 10 ...
0
votes
1answer
506 views

SharePoint REST API filter of string with space

I have a list with columns FirstName and LastName. Using API query, I am able to search for the first name or the last name. i.e.: _api/web/lists/getbytitle('Employee')/items?$filter=substringof(%...
0
votes
2answers
529 views

Rest API order by for Rootfolder won't work

I try to order a Rest API query (SharePoint Online) via CSOM. Unfortunately it won't work. I want to get the files & folders of the rootfolder of a library sorted by name. url: baseUrl + "...
4
votes
1answer
2k views

Create text file and upload it to document library using REST API with JavaScript

We need to create a text file and upload it to a document library using REST API. The contents of text file will be created dynamically by reading information from multiple lists. The operation needs ...
1
vote
1answer
54 views

REST, and IE Explorer [closed]

I using a simple jQuery add and remove hide class to display an animated awesome font to indicating file request is loading - page opens with the div containing the animated awesome font with hide ...
1
vote
1answer
184 views

How to get the onedrive files that were Shared with me using JSOM or REST or in SPFx

Is there any api available in REST or JSOM to bring the shared documents to me in SharePoint using SPFx framework. I came to know that we can get details with Graph API. But I am more interested in ...
4
votes
1answer
161 views

Get number of views of blog post in Blog Site using Javascript Object Model or Rest API

How to get the total number of views of blog post in Blog Site using Javascript Object Model or Rest API ? Blog Post view will be count only one time for one user.
0
votes
1answer
340 views

Why do we use headers in REST API, when we are already mentioning the method as POST?

my question is about - when we use the same REST API for information exchange for other tools, we don't mention headers, x-httpmethod & x-requestdigest there. But in case of SharePoint, why don't ...
0
votes
1answer
57 views

Get my AD groups info from SharePoint Online App JS

How can I to get my AD groups info (Id, Name), from an app js on SharePoint Online? Thanks.
0
votes
1answer
85 views

number of new/unread SharePoint newsfeeds on tile

I built a dashboard and want to show up on a tile/button the number of new newsfeeds (following, everyone, mention). I read the specs from Microsoft about the social feed API: Social feed REST API ...
0
votes
1answer
219 views

List of all suspended list workflows using javascript JSOM or REST api

I am trying to get the list of all workflows in Suspended state I looked up in google and the max that I can get is the list of workflows that are enabled in one list _api/SP.WorkflowServices....
4
votes
1answer
181 views

unable to filter UniqueId

This test /_api/web/lists/GetByTitle('doclib1')/items?$select=ID,DocIcon,LinkFilename,Modified,Editor/Title,UniqueId,GUID&$expand=Editor returns me { "d": { "results": [ { ...
3
votes
2answers
184 views

Few questions about sharepoint restful api

Few questions about sharepoint restful API for document library There is no single restful call to retrieve items of a specific view, right? Now I called /fields to get all fields that are ...
3
votes
2answers
2k views

SharePoint 2013 REST API create list item with attachments javascript

By doing online research, I wrote code to create list item in JavaScript for SharePoint 2013 REST API, code is working fine. I have also wrote code to upload attachments for particular item. The ...
1
vote
1answer
309 views

Which will be faster in this scenario, CSOM(JSOM) or Search API or Rest?

I am trying to get list of Article items For that I have to use the content type as filter and fetch the items I used CAML Query for fetching items camlQuery.set_viewXml(" <View><Query&...
0
votes
1answer
23 views

Custom List Accordian Narrative editable

I am looking to enable the Narrative porition of this code to be editable. <!-- Style --> <style type="text/css"> .item-title-clickable{ font-size:1.1em; background-color: #c7e0f4;...
2
votes
0answers
450 views

is on-premise Sharepoint 2016 REST API possible with oauth?

I have a Sharepoint 2016 server and a python web server. I would like to read data from Sharepoint with my python server. I was able to do this on Office 365 on the cloud but did not find much ...
0
votes
1answer
130 views

fetching fields using Sharepoint search Api

I have a content type called News Item Below is my Search Api query http://spsite/sites/Intranet/_api/search/query?querytext='ContentType:News*'&selectproperties='Title,IsPromoted' I am trying ...
3
votes
2answers
69 views

Create folder in recently created folder

I'm using the function below to create a folder and I'm trying to make it also create a subfolder within the newly created folder. CreateFoldersbyparent("abc","") CreateFoldersbyparent("abc","\test") ...
0
votes
1answer
16 views

Is it possible to have the user's name included in responses from the Yammer messages API?

When making requests to the Yammer API and returning messages from a feed, the only information about the poster is their ID. Is it possible to have other information about the user included as well? ...
0
votes
1answer
265 views

Unable to update single or multiple lookup values with rest api

I have a list name "Parts", This list has a lookupfield called Parts and it look into the Parts list. Aka 1 part can contain other parts. Hope you get the Idea When I'm trying to update the ...
1
vote
0answers
202 views

Unable to save multi taxonomy field value via RESTapi

I have a very peculiar problem. I am updating a list with a multi-value taxonomy field via REST on a SharePoint hosted app. Other list fields are being updated apart from this one multi-value taxonomy ...
1
vote
2answers
459 views

Start a 2013 site workflow from another workflow

I have seen here several discussion about how to trigger a 2013 list workflow using REST, but so far I cannot succeed in running a site workflow, which should be basically easier. My code: https://...
0
votes
1answer
2k views

How to get items from a SharePoint List by list URL path using Javascript REST API?

Using JavaScript REST API, we can get a list by URL path. Thus: http://vmdevsharepoint:12345/_api/web/lists/ Concatenating with this: ?$expand=RootFolder&$filter‌​=RootFolder/ServerRe‌​...
0
votes
1answer
370 views

Filter SharePoint list using Rest API

There is a SharePoint list with a lookup column. Now I want to search the SharePoint list with filter on lookup column. E.g. : https://sharepoint.com/sites/sitename/_api/web/lists/GetByTitle('...
0
votes
3answers
364 views

External list using REST API doesn't work

I just tried to call the Rest API using Ajax, but the server redirects me multiple times to authenticate. Finally, I get an error from the server with both a different domain and same domain name that ...
1
vote
0answers
156 views

Pagination is not working properly in Sharepoint

My list is in Sharepoint Online. I want to do pagination of list data in my custom page. 1st page code link: https://xxx/_api/web/lists/getbytitle('abc')/items?&$top=5 2nd page code link: ...
0
votes
2answers
219 views

REST Query - orderby result in Error [object Object]?

So I was following the instructions listed in these sites to build a proper query: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests ...
0
votes
1answer
34 views

How can I get/identify feature titles/names in REST?

SharePoint 2013 I'm able to view all site collection active features via the following endpoint _api/site/features. I'm unable to match any of the guids to feature titles; the endpoint doesn't seem ...
0
votes
3answers
1k views

How can I get the full url link of of Pages library via rest api

Is there a way to get the link to pages in a Page library? Cant find a property that stores the url? Thanks in advance