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 [sharepoint-rest-api]

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

6
votes
0answers
725 views

REST API to get Frequent Sharepoint Sites programmatically?

Sharepoint Online offers a view of the frequent sites of the current user. It is available in the home page of the "My Site" of the user. I'm asking if there is a REST API (or something like) to get ...
5
votes
0answers
131 views

Granting Library permissions to external users using REST API

Is there a possibility of inviting external users by e-mail and granting them collaborate permissions using the SharePoint REST API? (See the picture for reference) I have successfully managed to stop ...
5
votes
0answers
181 views

Empty result set with Folders SharePoint Online REST api with throttling

I am using the folders REST api with SharePoint Online to return subfolders for a folder: /_api/web/GetFolderByServerRelativeUrl('folderServerRelativeUrl')/folders. This works great until the number ...
4
votes
0answers
63 views

Get SubFolders using Sharepoint REST API and show them in HTML DIV

I want to retrieve Subfolders using SP REST API and check if there is any created folder and If it exists, display HTML content like: <label>SubFolder Title</label> for each SubFolder. All ...
4
votes
0answers
246 views

Rest api to post documents, pictures in custom news feed web part

I have created custom web part for news feed.I can post text content through the rest API ,but I need to post images and documents through the rest API. I followed msdn blog also.In msdn blog text ...
4
votes
0answers
123 views

Rest API Data filter from Lookup column by current user and show in dropdown

I want to show data in lookup column. from a list which contains lookup column and Username and another list which contains lookup value. Example: List1 contains Text column value and List2 ...
4
votes
0answers
947 views

Authenticate to SharePoint REST API from external service

I am trying to figure out how to authenticate calls to our on premises SharePoint 2013 REST API. So far, I've come across a lot of blogs that show you how to do it for SharePoint online. Here's one ...
3
votes
0answers
420 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
0answers
629 views

Sharepoint Online Rest api 403 forbidden

Trying to build an external c# web app that pulls information from SharePoint online using the rest api. rest call: https://mysite.sharepoint.com/sites/mySubsite/_api/web/lists/GetByTitle('My Repo')/...
3
votes
0answers
555 views

What is the Max File Size which can be uploaded to document Library through Rest API?

I am assigned with the requirement to upload multiple documents to the SharePoint online document library through rest API I have seen in the MSDN documentation that max limit is 2GB I want to know ...
3
votes
0answers
487 views

Search the document library using rest api in Sharepoint including its content

I dont require sharepoint search answers.I require using JS/Json/Web service/rest api.If i type anything in search box in top nav it should go to another page and show the results.Is there any way to ...
3
votes
0answers
59 views

How to show sharepoint context menu on my javascript page?

I have created a page and created list with the help of REST APIs, and also done some styling. This all working fine, but I need to show the custom sharepoint list context menu on this as below image. ...
3
votes
0answers
241 views

Uploading Large PDF Files in Sharepoint Library

I want to upload large PDF Files in a Sharepoint Library . I tried from normal code from GetFolderByServerRelativeUrl method and it is working fine , but taking too much time.(for ex. a PDF of size ...
3
votes
0answers
679 views

Search query for keyword search in a particular list Sharepoint Hosted app/add in Online

I am trying to add keyword search functionality using REST api on a particular list. I have got the result using the query as : var queryUrl = appWeb + "/_api/search/query?querytext='" + keyWord + "+...
2
votes
0answers
22 views

How to receive error description of invalid REST call in required language?

If my REST call to SharePoint server is invalid it returns error information with code and description, but always for xml:lang="en-US" language. For example: <?xml version="1.0" encoding="utf-8"?&...
2
votes
0answers
40 views

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API?

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API? If I have view only access to the site but I have contribute access to a list on the site can I ...
2
votes
0answers
457 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-...
2
votes
0answers
131 views

How to access a file given the absolute url of a SharePoint document via Microsoft Graph

Is there any way to access a file given the absolute url of a SharePoint document via Graph (or rest)? For example, how would I download a file with the absolute url "https://microsoft.sharepoint.com/...
2
votes
0answers
317 views

Rest to filter files using modified date

I am using below api to get files in descending order of modified date, but it not working. url = _spPageContextInfo.webServerRelativeUrl + "/_api/Web/GetFolderByServerRelativeUrl('...
2
votes
0answers
164 views

What is the purpose of “EntityPropertyName” property of field?

I am getting all list fields using REST API, In result, I found there is "EntityPropertyName" property for each field. For some fields, it shows exactly same value as "InternalName" property But for ...
2
votes
0answers
206 views

Get Author/creator of a site/subsite using JSOM OR REST API

I am trying to get the Author of a site using SharePoint REST API. But I am getting author name as a blank. Below is the REST Url : https://mysiteName.sharepoint.com/sites/RohitW/_api/web/...
2
votes
0answers
39 views

Unable to see All columns of list in result which is generated by Caml Query

here I am passing caml query to REST Api to get some result on sharepoint online 2016, the same query works fine on sharepoint 2013. my caml query is as below var viewXml = ""; viewXml = { ...
2
votes
0answers
222 views

Using javascript/REST API to access SharePoint data from CRM online

Is it possible to query Onpremises SharePoint site from a html page living inside CRM online and display the list of documents from a library? The Html page also needs to interact with Azure service ...
2
votes
0answers
53 views

Send mail to “Shared Mail Box” address using JSOM

I am able to send mail using this article : Send E-mail from javascript using REST API What changes do I need to make to send email to a "Shared Mail Box" email address.?
2
votes
0answers
166 views

Retrieve Specific Tags in SharePoint 2013 REST API

I'm having some trouble with the following, i'm sure it's possible but i don't seem to be able to find an answer online. I'm looking at using the SharePoint 2013 REST API to try and pull back ...
2
votes
0answers
419 views

sharepoint file download link using rest api

I am doing Salesforce integration with SharePoint using OAuth 'client_credential' method. I am able to fetch file content and but unable to render that content as a word or pdf.or image file. Is there ...
2
votes
0answers
97 views

Read excel file in library1 and update excel file in library2/list using powershell in sharepoint online

If user enters/updates raw data in excel file in document library1 which resides in SharePoint online site updated data should be reflected automatically in excel file in other document library2 or ...
2
votes
0answers
257 views

Get PublishingPageContent rendered when using Rest Api

I am trying to implement client-side navigation within a sharepoint site, this means, allowing the user to navigate thru the different pages without reloading the browser. I can dynamically load the ...
2
votes
0answers
80 views

Retrieve Subtitle/Caption information from REST API for Video 365 Videos in SharePoint Online

I'm looking to use the REST API to pull additional metadata like subtitle or caption track info. I have videos with the .VTT tracks loaded in the Video 365 module and can access those subtitles when ...
2
votes
0answers
69 views

SharePoint 2013 REST endpoint URI structure. How to get list with localized title?

I can not understand how to work with localized lists. Using the article from msdn, everything works fine if my list has a title in English. But if I want to localize the sheet, I can not take the ...
2
votes
0answers
24 views

Can we compose REST query which first apply some function on item then compare?

I have a date which is in Indian time zone, my SharePoint Online site is in different time zone. Now I have a rest query which filters the record. SiteUrl/_api/web/lists/getbytitle('ListName')/items?$...
2
votes
0answers
184 views

REST API DELETE call not working

I have a custom SharePoint site built using Angular JS & custom REST service built in C#, which Add/Edit/Delete items in SharePoint lists. The site is exposed externally. The problem I am facing ...
2
votes
0answers
201 views

Not getting an the image rendition option when using SP Rest api

I been trying to make out the URL in order to make a REST call which will fetch an image rendition from SP and then grab its value in order to convert it to base 64. I have been playing with the URL. ...
2
votes
0answers
560 views

Search REST API Custom managed property return null

My Custom managed property in Search REST API bring's null value in SharePoint Online. /_api/search/query?sourceid='A09A7990-05EA-4AF9-81F-FEDFAB16C4E31'&selectproperties='Title,mycustomColumn'. ...
1
vote
0answers
17 views

How to filter on a Edm.Double type using rest api?

I'm currently working on a small project where I need to query the Access Request list of a site, while this list is sort of hidden the REST api works perfectly (Mind you the title might be different ...
1
vote
0answers
16 views

How to Grant permissions to domain groups in SharePoint site using REST?

I need to grant permissions to Domain Group in SharePoint site collection using REST. Is it possible? If Yes, please suggest how to do it.
1
vote
0answers
11 views

Refinement filter to look at the Title and Path properties with REST Search API

I have a POST search using the following select properties: Path,Title,Size,Author,Description,FileExtension,Rank,DocId,WorkId,ParentLink,FileType,ServerRedirectedEmbedURL,ServerRedirectedPreviewURL,...
1
vote
0answers
64 views

“GetFolderById” available in REST API?

is GetFolderById available in REST API- SharePoint 2013 on premises.
1
vote
0answers
42 views

The maximum number of bytes allowed to be read from the stream has > been exceeded

I'm trying to create a list item through REST api, but the multitext field contains content larger than 1mb and I'm getting this error: "The maximum number of bytes allowed to be read from the ...
1
vote
0answers
37 views

Create Item in Document Library thru REST API

Is there a way to create an item inside a list library? Or perhaps convert a folder/file into a custom Content Type? I have added an item using custom content type thru the "New" menu (named "g1q" on ...
1
vote
0answers
29 views

How to process sharepoint page (site pages) data returned from rest api, i.e fetch title comments likes etc ,

How to process the html(ish) content returned by rest API while fetching site pages from Sharepoint , and is there any better approach to fetch page data. Trying the same with search api fetches ...
1
vote
0answers
17 views

How to exclude the null values in SharePoint search REST API

I am using the SharePoint search api to get the documents from the libraries. I have a managed property call L1DTI corresponding to a custom column. Now I do not want the search results where this ...
1
vote
0answers
37 views

Get sharepoint REST api digest header

I am trying to build an angular 4 app to talk to sharepoint sub site(not root site) level lists for attachments. The very first challenge I am facing is to be able to call the APIs which fails with ...
1
vote
0answers
21 views

Getting the direct link to image stored in Sharepoint Library on external site

I have a company public website that is using some images from our Sharepoint internal site. I have an API that is getting the content from the list as well as the direct image url that goes in the ...
1
vote
0answers
194 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"; $(...
1
vote
0answers
30 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=...
1
vote
0answers
28 views

Get Other Label (synonym), description property values of a term set using REST API

I am working with the Microsoft Flow where I need to get the OtherLabel and description property values of a term-set. This term set is attached as file metadata in a document library. I tried, there ...
1
vote
0answers
149 views

Find a document by the document ID REST API

I have looked around for this question and either couldn't find the answer or mis-understood it. Here is what I am looking for: All I have is a DocID from Sharepoint and I need to do a search on the ...
1
vote
0answers
33 views

Unable to share a SharePoint folder in a list with REST

I am trying to add a webpart that will be able to share several different types of items in SharePoint 2013 OnPremises. I am using the following code, which seems to work well with one exception. ...
1
vote
0answers
88 views

SharePoint API postman collections?

Whether you are using SharePoint on-prem or SharePoint online, there are many times when you want to do rest api calls to sharepoint to get certain tasks done. I use Postman to store common api calls....