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.

learn more… | top users | synonyms (1)

0
votes
0answers
15 views

OData batch request does not work well

Now I'm trying to use odata batch request in reference to the following things. http://www.andrewconnell.com/blog/part-2-sharepoint-rest-api-batching-exploring-batch-requests-responses-and-changesets ...
0
votes
0answers
10 views

Search results is null when ViewsLifeTime field is included and Queried via Rest api

I'm trying to do a search with the REST API sorting by ViewsLifeTime but the result search contains documents with ViewsLifeTime value is null, how can I avoid that?
0
votes
1answer
7 views

Default App Permission Scope

I've created a list that creates subsites through the REST API that uses a project site template. The site template i'm using has workflows that talk back to the main site using the REST API. The ...
2
votes
2answers
35 views

Open the document in the browser

I'm presenting some Search results to the user using REST API, is there something specific should I include in the link to the document so the document opens in the browser?
0
votes
1answer
20 views

REST query 'getbytitle' gives an error message in IE

I am trying to access tasks list using REST call using site_url/_api/web/lists/getbytitle(‘tasks') in Internet Explorer. It displays the message "The webpage cannot be found". However i could get ...
0
votes
2answers
25 views

GetUserEffectivePermissions returning 0 (“EmptyMask”)

I'm trying to retrieve the current user's permissions for a list but I keep getting an emptyMask result, even when my current user account is a Site Collection Admin. function ...
0
votes
1answer
8 views

Rest Api File Upload with version comments

Is there an api to upload a file along with Version Comments? When I upload a file through the SharePoint portal, the file upload popup also provides a text box to include version comments if needed. ...
0
votes
1answer
21 views

Get account name of specific user using their display name

I am targeting a Person/Group field within my page layout via JavaScript. This enables me to get the display name for that particular user "Lastname, Firstname". Using '.innerHTML', I can also ...
1
vote
0answers
29 views

REST update not working

I am having problems updating list items using REST calls within an angularjs SPA. I've tried HTTP and ajax methods but both do not work and give different errors. (I am only trying to update ...
2
votes
4answers
55 views

Compatiblity when using CSOM or SOM

If I want to develop an application in .Net using C# which will perform simple operations such as: Connect to a site using user/password Retrieve document libraries Upload file in document ...
0
votes
0answers
22 views

invoke-restMethod uploading a file to document library in office 365

<# .Synopsis Stores the credentials for Invoke-SPORestMethod. .DESCRIPTION Stores the credentials for Invoke-SPORestMethod. This is done so that you don't have to provide your ...
1
vote
0answers
13 views

invoke rest api office 365 powershell

### ENVIRONMENT SETTINGS $user = "domain\user" $pass = "thepassword" $doclib = "Documents" $url = "http://localhost/sites/teamsite" ### TOGGLE DEBUG MODE $debug = $FALSE ### DO NOT MODIFY $headers = ...
0
votes
0answers
24 views

Using powershell to upload large files using the rest api

I am wanting to use powershell to upload large files using the rest api, not on the sharepoint online shell or anything like that, just normal powershell. I have an office 365 site that i want to ...
0
votes
1answer
24 views

$orderby not working with lookup column Id

I want to sort order my REST results data with a lookup column's Id in my SharePoint list. I tried using $orderby in my REST query, but got no luck. can anyone of you help me out with this ? ...
1
vote
0answers
10 views

How to update item properties for an existing document found by search with CSOM?

You don't know which library it resides in, nor site, nor site collection. The only entry point is the search center URL or _api/Search endpoint. The problem is that when you retrieve the File it is ...
0
votes
0answers
40 views

Office 365 upload a file to a document library powershell

$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $pass = ConvertTo-SecureString $credentials.Password -AsPlainText -Force $Creds = New-Object ...
1
vote
2answers
49 views

Sharepoint online/Office 365 Is there a way to get all site collections for a tenant? [duplicate]

I'm looking for a way to get all the site collections for a particular tenant through API. The URL that lists all site collections is ...
0
votes
0answers
32 views

Create Web Property in Web Property Bag in SharePoint Site using REST API

I want to add one Web Property to sharepoint sub site using REST API. Is it possible or feasible using REST API?
1
vote
1answer
33 views

import sharepoint 2010 list data in json format using javascript (IE8)

i have a sharepoint list already created and populated from an excel file. How would i go about pulling data from sharepoint to a json object in my javascript program. Another requirement is that ...
0
votes
0answers
9 views

Sharepoint REST API Expand Column to fetch Lookup Column ID

I have a Sharepoint List 'UserSubscriptionList' that has a Lookup Column 'WorkspaceApp' and my 'WorkspaceApp' has a Lookup Column that has a Lookup Column 'AppCategory'. What is the best Optimal ...
1
vote
1answer
29 views

Get Group Id Using REST

I want to get group id in single call. I am using below URL <Sitename>/_api/web/sitegroups/getbyname('Approvers') it is returning object. I want to apply filter to above url to get group id. ...
0
votes
1answer
31 views

Reading sub-sites with files rest API?

I'm using the REST Files API, as documented here, to read the content of an Online Sharepoint (Office 365) site. Is it possible to get the sub-sites the root site using this API? I understand I ...
0
votes
0answers
15 views

Office Graph change the rowlimit

How Can i Change the rowlimit in an Office Graph query? I tried adding rowlimit=20 to the search but it didn't work.
0
votes
0answers
52 views

REST API uploading a file powershell office 365

Add-Type –Path "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type –Path "C:\Program Files\Common Files\microsoft shared\Web ...
0
votes
0answers
18 views

Delve and SPO REST API

So, besides the offical documentation of Delve and the REST API is there another sources where I can see the Delve capabilities? To see what I can combine with SPO and Delve
0
votes
1answer
15 views

While using REST API to get a list by title, there is a problem getting a list whose name contains the '&' character

I have already tried encoding the '&' as %26 in the request URL. It didn't work. Please suggest something else.
0
votes
0answers
17 views

REST Look-up Field Expansion (Members Unknown)

Trying to expand a look-up field, in a REST call, without knowing the member names. For example, I have a custom list with a People Picker field (Employee). I can retrieve the Title and ID fields via ...
1
vote
1answer
31 views

Render person with presence

How could I render a person with presence using JavaScript? Not in SharePoint result templates... I'm using REST and I'm getting the person from the web service
1
vote
2answers
24 views

Querytext: blank value for a property

How could I specify in a Querytext that I want all the elements that doesn't have defined a value for a property? For example, let's say that I'm interested in the property CheckoutUserOWSUSER, how ...
0
votes
0answers
22 views

Filter XML results from REST API call to SP list data

I was curious if it was possible to use VBA to send a query inside a REST API call to a sharepoint (SP) site in order to extract data from the SP list? I've looked around and I can't find an exact ...
0
votes
1answer
42 views

http:<server>/_api/web/webs 401 unauthorized

i'm using a jquery script embedded in a SharePoint page. i am able to load the results of a /_api/web/webs call to REST as myself (site collection admin). However, anyone that visits the page that is ...
0
votes
0answers
18 views

REST and Share price

I'm using 2010 and wanted to know if REST in 2010 behaves the same as 2013. Im looking for a get share prices and found a blog that explains how to use RESt but I cannot get it to work. Has anyone ...
0
votes
0answers
27 views

Bind REST result to DataTable/Gridview

Is there a way to bind Ajax/executor query result (JavaScript) from a SharePoint list to a datatable so that I can bind it into a gridview (aspx)? The examples I found so far are using ...
1
vote
1answer
28 views

SharePoint REST Connection to Return Data - Error

I would like to ask your help to this scenario: I am trying to return item data from a SharePoint 2013 list using REST I am using this url: ...
0
votes
0answers
32 views

How do I access the docs in a Sharepoint folder via REST API?

I am a total beginner with Sharepoint, actually I do not know much about the internal structures used by Sharepoint and what exactly can and can not be accessed via REST Apis Here is what I am trying ...
0
votes
1answer
24 views

How to read Data from App web and write data to a host web by making REST calls

my Question :How to read/copy Data(images folder) from App web and write/Upload data to a host web (Picture Library) by making REST calls with the cross-domain library. i have Created SharePoint ...
1
vote
1answer
34 views

SharePoint-hosted App - Retrieving items in host web with REST from app web with enabled fine-grained permissions

I have a SharePoint-hosted app which is querying list in host web. This list has enabled fine-grained permissions (item level security) and I am site collection admin. When I try to query items (with ...
0
votes
0answers
10 views

When I upload a document to SharePoint it works but I still get an error

I am learning the different capabilities of REST in SharePoint and right now I am working on uploading documents with REST. I have a code that uploads the documents and they are readable and ...
0
votes
0answers
21 views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
4
votes
2answers
103 views

How to get all properties of all users in SharePoint 2013 Rest API?

I am using this code to get all properties for just myself (current user). But how can I change this so that I can get the same data but for all the users in SharePoint? var oldurl = ...
-1
votes
1answer
37 views

How to use SharePoint 2013 Rest api to get users by role

I am trying to use javascript to download all users of a particular role. I have this so far. It seems to get me all the users, but not all the properties of the users. I want everything such as ...
2
votes
3answers
150 views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried "_api/SP.Utilities.Utility.SendEmail" and this is my code/ $.ajax({ contentType: 'application/json', ...
0
votes
0answers
20 views

SP.UI.ModalDialog.showModalDialog(options); refreshes browser and closes dialog

I have created a page which uses a REST call to get the DefaultNewFormUrl and then I am trying to pass this to the modaldialog but for some reason the modal fires, starts to load and then the entire ...
0
votes
0answers
23 views

Get current color palette for the site

I'm wondering if it's possible to find somewhere what .spcolor file is used for the site theme. As there is a method for applying theme to the site: ...
0
votes
1answer
37 views

/_api/web/features

This applied to a site collection like https://tenant.sharepoint.com/sites/MySite/_api/web/features retrieves a list of features ACTIVATED at the current scope. Does that mean site collection ...
0
votes
3answers
38 views

Some fields Undefined when display results from REST query

I am learning to build custom SP solution with JS and HTML following the Apress book of same name. I use the following script (in Code Snippet of a SEWP): <script type="text/javascript"> ...
1
vote
1answer
25 views

Fetch 'DocIcon' in REST api call

I have to display other site collection list data in root site. I am using REST API call to do that. But I am stuck while fetching 'DocIcon'. Can anyone tell me how can I get it? Here is my code ...
0
votes
1answer
29 views

REST Call to get DefaultNewFormUrl

I am trying to make a call to the REST service in Javascript to collect the 'DefaultNewFormUrl' for a specific list. The property is "not returned with the resource" so I need to make a separate call ...
0
votes
1answer
25 views

Access Mobile Number from Active Directory in Office 365

Can I access mobile number from AD in an Office 365 project using rest api or server side code? Currently I am able to get information like emailand name from rest api but not mobile number or phone ...
1
vote
0answers
44 views

Filter by calculated column with rest api in Sharepoint 2013?

Apparently you can't filter by calculated column with Sharepoint 2013 rest api? The calculated column in question returns a string. ...