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.

723 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
17
votes
0answers
245 views

Replacing SOD with fetch (handling JS library dependencies - *in the future*)

Anticipating a future, I am experimenting with User Custom Actions in the new Document Library View Microsoft has so kindly provided to the First Release Office365 tenants. Since there is almost ...
16
votes
3answers
8k views

Getting data from SharePoint Online with an App, service to service

I have registered an App in my SharePoint Online, and I can use it's ID and secret with the Office Dev PnP PowerShell library. Works like a charm. Now the issue is that we are trying to connect to the ...
8
votes
1answer
3k views

How to call the Sharepoint REST API from an external website(IFrame)

I've been trying to do a simple GET REST call from an external website (Dynamics CRM) to a SharePoint Online site. All I want is to list the files from that SharePoint Online folder into an IFrame on ...
7
votes
1answer
5k views

How to authenticate user in SharePoint Online using rest api

I have a website on SharePoint Online and a website on SharePoint On-premise. From my On-premise website i want to create a new list on my SharePoint Online site. To authenticate I used the following ...
6
votes
1answer
2k views

REST API External user access

I'm currently trying to access a sharepoint site through the REST api using an external user from another organization. The user has been added to the Site Members group with the Edit rights ...
6
votes
1answer
949 views

SharePoint Designer Get an Excel Value (REST)

I have the following problem: I want to get the values of excel cells with the REST Api and in SharePoint Designer 2013. So to do this I created a workflow with the "Call HTTP web service" action. But ...
6
votes
2answers
4k views

SP 2013 REST API How to get Approval Status for Version History items

This is how SP presents Version History: I use this URL to get file history: http://portal:34798/Documents/_api/Web/GetFileByServerRelativeUrl('/Documents/Documents/Tests/Tests_TextFile.txt')/...
5
votes
1answer
264 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.
5
votes
0answers
91 views

sharedWithUsersId not returning up to date user ids

I don't understand the response for the API call: /_api/web/getFileByServerRelativeURL('/docs/Test.docx')/ListItemAllFields/SharedWithUsersId I upload a Test.docx document and share it with two ...
5
votes
0answers
1k views

Unable to update taxonomy field value using REST API or JSOM

I'm not able to modify taxonomy field values with REST API or JSOM for a specific library. My code works on other lists, but not on this particular library, what can the problem be? The library has > ...
5
votes
0answers
261 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 ...
5
votes
2answers
5k views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
5
votes
0answers
1k views

sharepoint workflow rest api add role assignment exception

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api http://sp_site/_api/web/lists/getByTitle('Test')/items(1)/breakroleinheritance(copyRoleAssignments=...
4
votes
1answer
313 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
3answers
2k views

Get columns type via REST

I successfully managed to get columns names but now I'm trying to get columns type via REST but surprisingly I didn't found something on it in documentations (or maybe I missed it). It's really ...
4
votes
0answers
255 views

What are _spPageContextInfo.fid and _spPageContextInfo.nid in SharePoint 365?

I am getting values as shown below while executing _spPageContextInfo.fid and _spPageContextInfo.nid in the console in my SharePont 365 site but am not getting for what these values are used here. ...
4
votes
2answers
4k views

Request data from O365 Sharepoint Project online with oData

I'm trying to get data out of a O365 Sharepoint Project Online (PWA) enviroment. When I login to the O365/Sharepoint environment and navigate in the browser to: https://my.sharepoint.com/sites/pwa/...
4
votes
1answer
342 views

Accessing Sharepoint 2013 list from a plain old HTML page (not on SharePoint server)

I have a STRONG need for this. I created dynamic HTML pages that use AJAX to bring in XML files from an Excel spreadsheet. I REALLY want to store the list information in SharePoint 2013 and access ...
4
votes
0answers
166 views

Is it possible to create a site in a different Farm via SharePoint Designer Workflow

UPDATE: It looks a little bit like a cross domain limitation. I was able to successfully complete a site creation within farm the WF is executed on via REST, but as soon as I attempt to hit another ...
4
votes
0answers
577 views

Using REST API in SharePoint forms in Office 365 using SharePoint Designer

Can someone direct me to some basic tutorial or component that would allow me to consume a REST API from SharePoint forms in Office 365. I would prefer to do all the customization using SharePoint ...
4
votes
2answers
2k views

get user detail list of people who having access of ListItem/Folder SPD or Rest Api

I wanted to notify via email all those users having access or shared the listitem/folder and file with given item level permission. As my solution I was sending notification to the shared with field ...
4
votes
1answer
993 views

preflight returns 401 response even though headers correct

I am trying to access a sharepoint server REST api to upload some files. Access is via our tomcat application Although I believe I setup correctly the headers in IIS the request does not pass the ...
4
votes
1answer
3k views

Querying multiple lines of text column via REST API

I am trying to query a simple multiple lines of text column on a custom list in SharePoint 2013 on-prem. Whenever I include the text column in the $select fields I get an error that the field is not ...
4
votes
1answer
847 views

Sharepoint 2013 REST API with user without admin rights

I'm developing a web application which integrate with the sharepoint (multi-tenant). The app is supposed to upload and download files to the sharepoint. I'm using the Sharepoint 2013 REST and trying ...
4
votes
0answers
627 views

Querying 'Append Changed to Existing Text' from client script?

Is there a way, preferably via REST but JSOM would work, to query a SharePoint 2010 field to get all entries when 'Append Changes to Existing Text' on a multiple lines of text field is enabled?
3
votes
0answers
466 views

Sharepoint Online REST: retrieving ServerRelativeUrl of deleted file?

After using getChanges to get deleted files/folders, is there a way to get the deleted file's original ServerRelativeUrl (path) even if the file is not in the recycle bin (ex: it was directly deleted ...
3
votes
1answer
162 views

How can I check if an ID belongs to a user or a group?

I've got a SharePoint list with a field where authorized users and/or groups are listed. I know I can use CanCurrentUserViewMembership to check if the user belongs to a specific group, but if the ID I ...
3
votes
0answers
934 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
167 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#...
3
votes
2answers
166 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") ...
3
votes
0answers
241 views

Does Microsoft Graph support CAML queries for SharePoint Online lists?

Can you query lists in SharePoint Online via Microsoft Graph using CAML queries? Beta/Preview functionality would be ok for me to use. If not: any alternative apporoaches to use similar sophisticated ...
3
votes
0answers
528 views

Working with Discussions/Replies using REST update DiscussionLastUpdated

I'm following this thread which shows how to create a reply to a discussion using REST api. Basically -- created the reply at top level of list, get the reply parent folder, get the FileRef info about ...
3
votes
0answers
58 views

GetGroupsForUser - Only returns groups when I send a claims string 0#.W. Why is that?

I'm playing around with SharePoint 2013 soap api - particularly the GetGroupsForUser on my company's sharepoint instance. It seems that it only returns groups when I send a claims string i:0#.w| + ...
3
votes
1answer
455 views

Using the OData endpoint to update or insert assignment in Project Server 2013 On Premise

Objective Connect to Project Server 2013 in order to update an existing assignment of a resource to a task or create a new assignment for the resource in case it (the resource) is not assigned to the ...
3
votes
0answers
865 views

How to enable cors on a different site collection?

I want to make a rest call to get web properties (i.e. /_api/web), for a different web application than the current. I have added the response headers Access-Control-Allow-Credentials : true Access-...
3
votes
0answers
552 views

Post Infopath Form remotely using REST SharePoint 2013

I am a C#/DBA/Web developer using VS 2015 and new to Infopath/SharePoint so no bashing please. Got thrown into this project and have been banging head against wall for week trying to resolve this. ...
3
votes
0answers
388 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
892 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 + "+...
3
votes
1answer
2k views

Retrieve Images Not Working Via REST API

I am trying to retrieve Images using the REST API from iOS/Android. The issue I’m running into is when the images are stored in the /sites/siteName directory, the REST call does not work. Let me ...
3
votes
0answers
209 views

Get REST RequestDigest on new (First Release) Library View page

There is hardly anything left in the new (First Release) Document Library View, No SP Object, NO JSOM and no more DOM element with the FormDigest we need to do REST, so all code with: document....
3
votes
1answer
881 views

Get SharePoint group permissions level name based on group name Using SharePoint Rest API

I am trying to get SharePoint User group permissions (Ex: Read, Contribute) based on the group name using SharePoint Rest API. My goal is to get the permission level of the group and disable features ...
3
votes
0answers
46 views

Reaching subsites of SharePoint domain

I am writing an application that scrapes all the files from a given SharePoint site and all of its sub-sites. This worked perfectly when I ran it locally however, now that it's running on a server ...
3
votes
3answers
3k views

Updating SharePoint list field property

I am trying to set the property ReadOnlyField to false on a column using the REST API. I am trying to do this using Postman in chrome and not able to get this to work. The Microsoft API lists how to ...
3
votes
0answers
153 views

How to minimize data returned from SharePoint 2013 REST search api?

In sp2013 rest, you can get json returned. But also depending on the header type, you can specify a no metadata option to get less data as shown here. http://www.vrdmn.com/2014/06/improving-rest-api-...
3
votes
1answer
119 views

.push() and .pop() multiple value lookup field via REST API

I'm updating a multiple value lookup field via REST with the following code: var itemProperties = { '__metadata': { "type": "SP.Data.QuestionsListItem" }, 'AnsChoicesId': { "results": [1,3] } ...
3
votes
0answers
340 views

Update metadata w/2013 REST API in a Workflow

I am looking for an example of a REST PUT/MERGE method done from a workflow (no code) in SharePoint Designer to update a metadata field in a library. Specifically what the Build Dictionary and Call ...
3
votes
0answers
659 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
3
votes
2answers
1k views

JSon REST API. Retrieving items in lists. Workflows

Using this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=224 I was able to make a workflow that loops through lists. Now I understand adding ?$top=5000 at the end of my URL I can pull more ...
3
votes
0answers
2k views

REST api 500 (Internal Server Error) error for following a site

Im currently using this code to follow a site : var executor = new SP.RequestExecutor(shptService.appWebUrl); var siteUrl = "https://domain.com/site1"; executor.executeAsync({...
3
votes
0answers
2k views

How to get the Search REST API sort to not be case sensitive?

I am using the Search REST API to get a list of users, and am trying to sort the results by last name. However, the sort seems to be case sensitive. Is there a way to change the way items are sorted? ...

1
2 3 4 5
15