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
0answers
57 views
+50

SharePoint REST API - odata $expand is not working on a specific site

I am using SharePoint API to get list items. One of the fields is User Picker. The query looks like this: /_api/web/lists/getByTitle('Actions')/items?$select=AssignedTo/Id,AssignedTo/UserName&$...
0
votes
3answers
29 views

How to get users email address using SharePoint REST API

I am using the following code to get the current logged in user to a SP page. I'm only able to get the Title. How can I get the email address as well? Thank you. // Get current user jQuery.ajax({ ...
0
votes
0answers
21 views

Update field default value on a subfolder REST

I have multifolder structure like that: Opportunities [document library of custom type OPFolder]      OP0026 [folder of custom type OPFolder]         Incoming [normal folder] custom type OPFolder ...
0
votes
1answer
36 views

How can i find the Lookup Column id when i pass the data to REST API?

As shown in some examples I must use lookup column ID when i pass data to Rest API. But I cannot find what the lookup column's id. So How can i add this id to data in rest api? JSON.stringify({ '...
0
votes
0answers
12 views

How to pass Lookup column data to Sharepğoint UpdateList Rest Api?

I have one lookup column and normal columns. I want to change the column's value. There is no mistake when i try to change normal columns. But if i want to change lookup column, I had this error ...
0
votes
1answer
34 views

Trying to upload files using REST

I'm using the following method to write to a SharePoint list using REST with data from a HTML form. How can I modify it to also be able to also upload a files from the form? Thank you. jQuery....
1
vote
0answers
37 views

How to create multiple columns in a SP list using single REST call

I want to create 3 columns in a SP list from my SPFX webpart using REST call. Could you please let me know how to achieve this? I am using below code to create 1 column but instead I want create 3 ...
0
votes
0answers
29 views

I get CORS error in SharePoint. I also changed web-config but nothing happens

I call AJAX request and the browser got CORS error. I tried to add "Access-Control-Allow-Origin" in IIS web.config. But it doesn't work. I have two servers. My AJAX is true only when I have ...
0
votes
2answers
27 views

Get Created By(not Author) user display name from SharePoint Search REST API

I need to retrieve information about who added document to SharePoint. I see that there is field Author. But this field may contains several users(information from file metadata will also be included)....
0
votes
0answers
21 views

Update external data field using REST API

I am uploading files in SharePoint 2013 using REST API. Once the file is uploaded I also set values for some properties of the uploaded file. I am having problems when the field is of type External ...
0
votes
1answer
24 views

How to fetch data from _vti_bin/listdata.svc using node js

I'm having some trouble figuring out how to get data from the _vti_bin/listdata.svc on my sharepoint online site. Essentially I am trying to fetch the data in this listdata.svc file to then insert it ...
0
votes
1answer
47 views

How to read from the Image column in sharepoint Online lists using RestAPI?

In SP Online lists (modern experience), I've added a Image formatting and constraints for publishing column to the list (via site columns), it converted my modern list into classic. Also I am not able ...
0
votes
0answers
9 views

Is there any modern search api introduced in SP online besides search REST api?

Because of the modernization happening in SharePoint online, is there any modification to the search api programmatically? Example as Graph api is there any modern search api available. As I ...
1
vote
1answer
25 views

Get News using REST API

I have a working REST query that grabs all News Posts and News Links. Since the former is considered 'Internal' news, I need a query that can grab these two types of news separately. https://tenanturl....
0
votes
1answer
27 views

React - Sequence of methods

I have written following code to get current user group Ids and later from that Ids I wanted to filter data from SharePoint list. First I want to execute ServiceManager.getRemoteService()....
0
votes
0answers
10 views

How to allocate more memory to the listdata.svc service (REST API) in SharePoint?

I'm running a two tier server and I'm thinking that the calls the rest api makes fall under the distributed cache server, but find little documentation on this. How would I grant/allocate more memory ...
0
votes
1answer
22 views

How to get a specific listview's column datas with REST API and ajax javascript?

I want to be able to get the value in Column A of the selected document. I only want one column datas. And I can use Rest api and javascript.
0
votes
0answers
9 views

Is it possible to use formdata interface to upload files to SharePoint 2013 On-Prem

As the title says, how does one use the formdata interface and javascript to upload files to a SharePoint 2013 on-prem list? If so, can an example be provided? Thanks!
2
votes
2answers
118 views

Create Site Page via REST API

I would like to create a Site Page via REST API with my own Title and Content. So far I tried to send a POST request but got an error: To add an item to a document library, use SPFileCollection.Add() ...
0
votes
1answer
37 views

Call external API from SharePoint online using javascript

I am having HTML file for user input and use REST API for update into SharePoint list. we have a requirement to get value from external API. I am able run the below script from normal HTML form, and ...
0
votes
0answers
19 views

How can i retrieve the datas in one column from a list?

I have a big document library. And i am using C sharp. When the user selects one document from the frontend website(like click method), I want to be able to get the value in Column A of the selected ...
0
votes
1answer
29 views

Creating sharepoint discussion list item using REST API

I am consuming sharepoint discussion REST API's in my application. While creating new discussion (Reference: https://stackoverflow.com/questions/25050112/creating-a-sharepoint-2013-discussion-item-...
0
votes
3answers
42 views

Get both columns in a list using REST

I have a list of tags with 2 columns, Title and Folder. https://i.stack.imgur.com/WGgIz.png I am currently querying the list using '/_api/web/lists/GetByTitle('Tags')/items' and am successfully ...
0
votes
1answer
19 views

REST API to add replies to a share point discussion

I am able to post a reply to share point discussion with help of below link. REST Call to Post a Reply to a Discussion Board Topic w/o JSOM but here for posting a message ContentTypeId is required.As ...
0
votes
1answer
71 views

Create columns in custom list using REST API with SPFx

Below is my code, every time I am getting 400, I am trying spHttpClient to create a column in a SP List.. Please suggest SPFx Code let listTitle = document.getElementById("txtListTitle"...
0
votes
1answer
33 views

How to move a file from one folder to another through sharepoint api in python?

I have a folder in sharepoint. I wanted to move a file from one folder to another. As per documentation, my trial was like below. headers = {"Authorization" : "Barer" + Token, ...
1
vote
1answer
20 views

Unable to read sub folders inside document library with REST

I have a document library with files and folders. I am using the below code to try to get the list of files inside a specific folder that sits in this document library using the SP REST API. I am ...
0
votes
0answers
31 views

View with approval status = approved doesn't show the current approved version if checked out

We have an official doc repository to comply with a government regulation (showing strict change control procedures). REPRO STEPS: Create a SPO doc library that requires approval, versioning, check ...
0
votes
0answers
24 views

Update Ms Project tasks using Rest API

Is it possible to update MS project tasks (Microsoft Project server on-premises) using Rest API? or CURD operation for Microsoft project tasks?
0
votes
0answers
48 views

REST API to create alerts

I tried creating an custom alert using _api/web/alerts/add. But getting unknown error. I referred this Create list alert using REST for creating an alert. Does the the alert functionality exposed ...
1
vote
0answers
33 views

Upload a DOCX file in a SharePoint Library using REST

I Am trying to upload a word file in a SharePoint document library in SharePoint 2013 environment. File is uploaded successfully every time but it is corrupted. string siteurl = "http://myurl/sandbox/...
0
votes
2answers
40 views

What are the exposed REST api in Discussion board?

I am trying to utilize REST api to get/set discussion list fields. I am facing issue for following fields, I am able to set below fields using CSOM but I want to set it using REST api because I am ...
0
votes
0answers
16 views

What do I have to change so that sharepoint properly decodes my base64 document?

I am currently trying to upload a file from Business Central to SharePoint using the REST API. For the sake of simplicity, I first took a picture. I converted this image to BASE64 and attached it to ...
0
votes
1answer
62 views

Update Document Library Title Using REST

I am trying to update the Title of an existing document library using REST but getting this error The parameter __metadata does not exist in method GetByTitle. my REST endpoint is /_api/web/lists/...
0
votes
1answer
34 views

API Call to create folder with %-Symbol either fails or doesn't decode

I'm implementing REST Calls to Sharepoint in Java. I create folders by sending POST Requests to /_api/web/GetFolderByServerRelativeUrl('/sites/MySite/Folder/')/folders/add('NewFolder') This creates ...
0
votes
1answer
61 views

How to get version history in SharePoint 2013?

I made a comments column, enabled "Append changes to existing text", and enabled "Create a version each time you edit an item in this list?". How can I retrieve all versions so I can get all comments ...
0
votes
2answers
35 views

Get Display names of Direct reportees in Office 365

I need to get display names for all the direct reportees under a manager. I am using below code to get direct reporteees using rest in SPFx using react. public componentDidMount(){ this....
0
votes
1answer
46 views

How to fetch all data associated with a SharePoint web part using Microsoft Graph API?

I am wanting to fetch all of the associated data for the web parts of a SharePoint Page using the Microsoft Graph API. Is this possible through the beta or v1.0 API? I can't seem to find any ...
0
votes
0answers
79 views

Using SharePoint's REST API to $expand a folder's people field

I can't quite remember how to expand a field of a folder or file. Example: I can do something like Folders/ListItemAllFields/RoleAssignments/Member to expand the role assignments, but I cannot do ...
0
votes
1answer
42 views

Sharing a folder using sharepoint Rest API

Do you have an idea how to share a folder with a list of users(list of emails) using Sharepoint Rest Api from a java application? Thanks.
0
votes
1answer
26 views

Can you use REST API to upload photos from your phone onto SharePoint 2013?

I need to develop a mobile web application that allows users to upload photos onto a SharePoint photo library or document library using REST API. For some reason, users can upload photos from their ...
0
votes
2answers
103 views

Upload file to SharePoint private group via REST API

I want to know how to upload files to SharePoint private Group via REST API. How to get SharePoint private Group folder? How to upload file to this private Group folder? Here is link of my private ...
0
votes
1answer
32 views

Add a new choice option to a choice field with write-in using REST without erasing existing options

When a folder is created in a library I would like the Name of the folder to populate a choice field. I would like to use REST in Power Automate to add a choice to a choice column with write-in ...
0
votes
1answer
63 views

How can i get status of workflow via rest api - whant to know when its completed,failed etc

Is there a way i can get the status of my running workflow for a particular record? I; working on a form that has a submit button and would like to enable it only when the status of the workflow is ...
0
votes
0answers
13 views

Manipulating the search schema through HTTP call

Using SharePoint Online, I'm looking for a way to provision through HTTP call (rest or web service) search schema configuration. Especially, I'd like to map some RefinableStringXX to custom column ...
0
votes
0answers
72 views

Error updating document metadata with REST Flow

So I am beating my head against the wall and have done more searching on SE than I ever cared to. I am trying to update the Modified By field for a document in a Document Library on a Sharepoint team ...
0
votes
1answer
834 views

Update/Add choices of a Choice field of SharePoint list using REST API

I want to update the options of the Choice field of the SharePoint List. Is there any way to update the choices using the REST API? Below is the code i am using: $.ajax({ url: "https://ts....
0
votes
0answers
33 views

Share Object method child items - Sharepoint rest api

I'm using the SP.Web.ShareObject method to grant access to a folder for an external user and it works ok, but the user can't see the files inside this folder. Here's the body of my call : { "url":"...
0
votes
1answer
41 views

Unable to fetch lookup field values using REST api

I am using REST api to fetch data from a SharePoint list. I am able to get data using this query: requestUri = "/_api/lists/GetByTitle('Data')/items?$select=ID,Title,Department/Title&$expand=...
1
vote
1answer
115 views

Sharepoint Rest Api ShareObject method

I want to share a file/folder with users through a rest call. The Sharing permission of the site has already been set. I found out about SP.Web.ShareObject method but I'm getting a "Couldn't resolve ...

1
2 3 4 5
45