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.

Filter by
Sorted by
Tagged with
0
votes
3answers
1k views

SharePoint 2013 get full file name including extension

Wondering if anyone can help me please, I have a media library with a number of videos in and I want to get the full file name including the extension out of the library, I have so far tried using ...
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 ...
0
votes
0answers
8 views

I am adding a file to the folder using SharePoint API showing content as base64string value

Does anyone have a link or document to make rest sharp SharePoint API to add a file to the folder with byte array payload? Any help is great; thank you in advance. GetFolderByServerRelativeUrl('list')...
1
vote
1answer
1k views

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like: {"columns":[{"name":"A","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":"left"},{"name":"B","visible":false,"width":150,"sort"...
1
vote
1answer
849 views

REST API call Cross-Domain to My Site Personal Site Quick Launch Links

Hoping someone can help me with a concept I am trying to accomplish. Scenario Basically I need to replicate (on a Publishing Portal) the Add/Edit Links in the left navigation of My Site Host (My ...
1
vote
3answers
9k views

Filter null value for SharePoint column using REST

I am trying to fetch the data based on my "EmpData" list. I am able to get the exact rows for the below Rest API query till I don't include "Null" filtration in my below rest var oDataUrl = siteUrl + ...
1
vote
1answer
957 views

REST API Throttle Limit Error

I have an application I built in SharePoint Online which uses REST API queries to pull records out of a SharePoint list which has 400k records. The list has an indexed column and for the most part ...
2
votes
1answer
1k views

Access Denied while accessing SharePoint Custom List Using Rest APIs via POSTMAN

From couple of days, I am trying to access Custom made SharePoint Online (Office 365) List for CRUD Operation with the help of Rest APIs Endpoints using Postman, but all the time I am getting "Access ...
0
votes
1answer
1k views

REST addViewField "Cannot handle the data at position 0."

I'm currently writing an initialisation script for a SharePoint-hosted application which checks if a list (used for launcher items) exists. If it doesn't, then it runs through a series of processes to ...
6
votes
3answers
15k views

A type named 'SP.Data.ClientsListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type

I am trying to update a list item using rest api $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, type: "PATCH", headers: { ...
0
votes
2answers
3k views

Save to a People or Group column using SP 2013 REST API by login name only (without the ID)

This question will be a duplicate of this one (which has no accepted answer). I am trying to save a SP 2013 list item using the REST API. One of the columns is a People or Group column. Normally ...
0
votes
1answer
25 views

Sharepoint Rest API, Get files from a list throwing unknown 500 errors only when a file is present

I've been setting up an app to query a Sharepoint Document list for files (amongst other things). Querying {{mainLink}}sites/{{subsite}}/_api/web/lists/Documents/Files on postman with the following ...
0
votes
1answer
904 views

Authenticate user with FormDigest via CSOM/REST

Our SharePoint 2013 farm is using Windows Authentication and exposed to the Internet. We have a webparts contains javascript AJAX call to another server with a different hostname. Intranet: intranet....
0
votes
1answer
859 views

GetUserProfilePropertyFor(Manager) differs from the managers Account

I will explain how I am currently doing my REST calls, by the hyperlinks. _vti_bin/ListData.svc/UserInformationList?$select=Account&$filter=substringof('Joe',Name) _api/sp.userprofiles....
0
votes
1answer
887 views

How to save attachments filename into a field?

I am trying to create a URL/ Link with current item attachment filename. My example List name: MyList ItemID : 100 LinkField: NULL attachments: abc.csv & abv.doc I would like create a ...
1
vote
1answer
1k 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 ...
1
vote
1answer
2k views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
2
votes
1answer
946 views

Unable to retrieve RoleAssignments through Sharepoint Online REST API

I am having a problem with retrieving RoleAssignments (for any object, web, list, folder etc.) I have attempted to get it through: 1. https://[my_company].sharepoint.com/_api/Web/RoleAssignments 2. ...
0
votes
2answers
1k views

GetFileByServerRelativeUrl is returning 400 bad request

I am trying to download file from SharePoint using below code url ='https://site_url/_api/web/GetFileByServerRelativeUrl("/PraveenTest/Test/file_name")/$value' headers = {Authorization: "Bearer" + ...
0
votes
1answer
4k views

REST call "d/results" vs "value"

Can anyone explain why is it that when I make a REST call to retrieve items from a custom list, sometimes the items array is grouped under "d/results" path and sometimes "value" path. The results are ...
1
vote
1answer
1k views

How can I create a alert through SharePoint REST API?

Is there any REST API which can create the alert on a SharePoint List? We have a customized website which user can view files on SharePoint, but when user want to subscribe to a folder or file ...
0
votes
1answer
1k 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 + "'", ...
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 ...
0
votes
1answer
2k views

Get SharePoint data in Cross Domain using REST-API

We have (02) SharePoint farm in different domain and they are connected. We need to access data from Farm-A SharePoint List in Farm-B using Rest-API usually we calling REST API by just URL as below ...
1
vote
1answer
1k views

How can I loop through a json result by substituting field/column names with a variable

How can I loop through a json result by substituting column names for a variable End result: I'm building a table from a list (~25 columns). I want to attach custom classes to each cell based on the ...
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 ...
1
vote
1answer
1k views

SharePoint Multilines of text field with JavaScript

I have a SharePoint multilines of text field, where I add line breaks (Enter), when I render the value using REST and add it to an html element, it's not rendered with the line breaks, although I am ...
2
votes
1answer
7k views

CSOM vs REST in sharepoint 2013 in terms of performance

CSOM vs REST in sharepoint 2013 in terms of performance and why.I have been having this question for a long time and I have not got a clear picture on this.
1
vote
1answer
949 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working and gives error, 404 not found. function getListData(...
1
vote
1answer
1k views

SharePoint Online REST: Get User Profile Properties in 2013 Workflow

I'm looking for some help with a REST call I'm attempting to make in SharePoint Designer 2013 Workflow. The site is on SharePoint Online. The call is to get info related to a specific user account. ...
2
votes
2answers
2k views

Get the data from Multi line Text field and set it to text area line by line

I have a multi line rich text field and I want to get the data from column and set in text area line by line. I tried Splitting but I need another solution if possible.
0
votes
0answers
9 views

Is there a difference between the /Files endpoint and the /Children endpoint with the Sharepoint Rest API

I'm currently working out how to iterate through files on a sharepoint using rest. Ultimately I'll have to get all files from a folder, do stuff, and then upload to another folder. From what I can ...
0
votes
1answer
1k views

How to save CSV data to SharePoint 2013 list without iterating through the each record using JavaScript/REST?

I am having CSV with more than 3500 records. My need is to import the CSV data to SharePoint 2013 custom list. I have to achieve this programmatically. I have already tried some bulk operations/...
0
votes
1answer
844 views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
0
votes
1answer
927 views

REST query: $filter by AllProperties of _api/web/webs

Is there any way to query subsites via REST and include $filter for properties in SPWeb's property bag, like this: http://site.company.com/workspaces/_api/web/webs?$expand=AllProperties&$select=...
1
vote
3answers
2k views

How to make filter on single column with multiple value in REST API

I have array of items ID now i just want that items from custom list using REST API. array size not fixed in my scenario. any help will be highly appreciated.
0
votes
2answers
2k views

Populate person field of custom list via REST

How do I get the values of get_id() function into person/group field via REST? I know the syntax of the REST part has to be like: 'AssignedToId': {"results": [ID1, ID2,...]} But how do I load the ...
1
vote
1answer
2k views

Use REST odata webservice to update a task's custom field in Project server

I've figured out how to update a Task's basic fields via the OData Rest service using POST (X-HTTP-Method=MERGE): /ProjectServer/Projects('{#project}')/Draft/Tasks('{#Id}') The post content is a ...
0
votes
1answer
26 views

Create navigation item using REST API with non-existing link in SharePoint Online

I've stumbled upon issue where I need to create a link in navigation from root site which points to site collections. POST Request URL: https://contoso.sharepoint.com/_api/web/navigation/...
2
votes
1answer
3k views

How to create list item in an external list using SharePoint workflow?

Environment: SharePoint 2013 SP1 I have an External List displaying data exposed through a WCF service. Creating, Reading, Updating and Deleting (CRUD) items in the external list works fine in the ...
1
vote
1answer
877 views

Sharepoint REST api: wasn't $.Ajax supposed to make asynchronous calls?

I don't understand why my code is running synchronous. At least it is what the attached print-screen shows. Are my assumptions correct? <script src="../SiteAssets/js/lib/jquery-2.2.0.min.js&...
25
votes
4answers
62k views

Expanding columns in lookup fields

Using the SharePoint 2013 REST API, Can I get more than one column from the lookup column by using the $select and $expand endpoints?
2
votes
1answer
974 views

Search REST API call not working for anonymous

I'm trying to execute the following query for anonymous users. But, its not getting any results. When login, its working fine. Any idea about this ? /_api/search/query?QueryText='Category: "About ...
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 ...
4
votes
2answers
12k views

ReferenceError: SPClientTemplates is not defined

I am trying to use the client-side People Picker and I can't get it to initialize the people picker due to SPClientTemplates not being defined. I am following MS documentation line by line but cannot ...
3
votes
2answers
3k 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
0answers
15 views

Upload file to SharePoint from another website (With no computer, Cloud only)

I am looking to see if its possible to download a file from a website directly to SharePoint with no local computer or VM involved? I have an app registration for my SharePoint and I have learned how ...
0
votes
1answer
1k views

REST API Files in Folders from Document Library

I am building SharePoint add-in on Office 365 based on angular JS. I followed another article here to try and read documents from a folder in a document library from the HostWeb. here is the URL ...
0
votes
1answer
8 views

Are there any SDKs for SharePoint REST APIs?

I am planning to call SharePoint REST APIs from my application server-side code to add files and add metadata. I wanted to ask if there are any SDKs or libraries available for calling SharePoint REST ...
3
votes
1answer
11k views

sharepoint rest api, serverRelativeUrl, extended properties on all files

Is there a way to write the service call in example A to get the file properties in example B? Currently the folder isn't a named list. If it were would that help? This question is similar to: Is it ...

1
2 3 4 5
46