Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
12 views

Search query api to get birthday date

I am trying to use the sharepoint REST api to get all users birthdays. So I am using a crawled property People:SPS-Birthday with the managed property RefinableDate00. Yesterday 15/08/2019 (Thursday)...
1
vote
1answer
590 views

How to Check Current User Exists in AD Group using Rest Api

We have a SharePoint 2013 On premise environments and having the Domain Groups with the Names contains SPECIAL characters as (Role)x$Customer$2838. Using the below rest call i am able to get all the ...
1
vote
1answer
35 views

Display value of lookup fiels on webpart

I am beginner on SharePoint framework and with TypeScript. My problem is I have a list that contains a lookup type field "categorie", When I try to get the records from the list with rest API, the ...
0
votes
0answers
15 views

The Web site address “/sites/T3W-PM/010101140819” is already in use

I've created a workflow to automate the subsite creation process as much as possible. This has worked perfectly for several day, however. I came in this morning and found that every requested site is ...
0
votes
1answer
19 views

REST call in workflow throws Error The parameter URL does not exist in method Add

I have a workflow that created new sub-sites up until yesterday when it stopped working and started throwing the following error: The parameter URL does not exist in method Add. That parameter ...
0
votes
2answers
16 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
14 views

Adding request limit to Sharepoint/Office 365 API List search

I have a url I am using to query a list in Sharepoint formatted as below. http://sites/sites/site/_api/web/lists/getbytitle%example%/items?$select=Email/EMail&$expand=Email Because my list has ...
0
votes
1answer
29 views

403 Error on REST call in SharePoint Workflow

I have a list called Project Log on a sub-site which need to automatically copy any item created in it to another List on the parent site called Master Project Log. This has to be accomplished using ...
0
votes
1answer
1k views

REST GetFolderByServerRelativeUrl not working?

I'm currently trying to retrieve folders and files from my sharepoint server and for that, I'm using RESTful calls. The problem is that the method GetFolderByServerRelativeUrl is not returning a list ...
0
votes
1answer
20 views

How To insert field of type lookup in the SharePoint List

I have a list with name Product Catalog and there are two lookup fields with name Country Preference and Location Preference one date field and multiselect field. I tested with list name without any ...
0
votes
1answer
22 views

$batch not working sharepoint online rest api

Trying to work out the $batch REST api in sharepoint 365 My request payload (simple GET request) --batch_45993c25-30ce-459d-830f-a5aabaf4901f Content-Type: application/http Content-Transfer-Encoding:...
0
votes
1answer
781 views

Error on SP.RequestExecutor in sharepoint online: Object doesn't support this action

I am trying to do a simple search using javascript in SharePoint online but I am getting the following error:Object doesn't support this action. The error is thrown right here: var executor = new SP....
1
vote
0answers
23 views

Web Config for node js REST API inorder to host in windows server IIS

I'm first time creating REST API in node js. Can someone guide me what webconfig file should contain. I need to deploy this on windows server & I need to call this restapi from front end.
0
votes
1answer
18 views

Linked SharePoint List not producing correct data in REST query?

I am trying to use the Office 365 SharePoint REST API to pull data stored in a list on SharePoint. There are 2 columns in the list that lookup to another list. I am trying to query the list using: ....
0
votes
1answer
2k views

Upload a file to SharePoint document library using post man

Need to upload a file to one document library SP2013 , and see the response in POSTMAN, using REST API, which format , which parameter to pass
0
votes
0answers
14 views

Rest API Error : The Parameter accept does not exist in method

I am using SharePoint designer to execute an Rest API call. I know my workflow itself works because I can enter a different REST call and it works. My URI is : http://thishsarepoint.sharepoint.com/...
1
vote
1answer
3k views

SharePoint REST API filter based on Today's date only and not time. (Similar to IncludeTimeValue=False in CAML query)

I am trying to get data from SharePoint list with REST API that are created today only. var listName = "Carousel%20News"; var today = new Date().toISOString(); Here is my REST URL : ...
1
vote
0answers
21 views

How to get underlying data in SharePoint List via REST Api?

Currently I am trying to use the Office 365 REST service to programatically pull data from a list on a SharePoint site. I've been successful in making a successful call to the list and it returns data....
0
votes
1answer
676 views

SharePoint Rest API shows error for Author/FirstName' is not valid

I have Rest API URL below: https://DevSite/_api/web/lists/getbytitle('Test')/items?$select=AuthorId,Author/FirstName,Author/LastName,Author/Id,Author/EMail&$expand=Author It is not working, it ...
0
votes
1answer
11 views

Assign a single resource multiple times to the same task, preferably within different periods

I'm trying to automate a process which takes the absences of assigned project resources into account. We use a separate application for absence management of our personnel. What I'm trying to achieve ...
0
votes
1answer
589 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=...
2
votes
1answer
710 views

REST API Workflow Task not change its state

We are shifting our code from .Net - C# to REST API for Workflow TASK Approval process. We have successfully change the update item in Workflow Task list, but Workflow not change its status using ...
1
vote
2answers
319 views

Expand Multiple Lookup field with Microsoft Graph

How can I Expand a Multiple Lookup field with Microsoft Graph. I need to get all fields from a multiple lookup field. Thanks.
1
vote
1answer
19 views

404 Not Found - While accessing Folder in Sharepoint from POSTMAN

I am doing a GET request to below URL from POSTMAN to get Folder details and files. But i am always getting 404 Not Found in POSTMAN. ANy suggestion if the URL is wrong. https://learningsfdc....
1
vote
1answer
27 views

Web part list items count

I have a list built using web part. I want count of that web part list. Scenario: I have List A. Created list B and added web part into it which points to list A. I want list item count of list B. ...
1
vote
1answer
18 views

Cascading Dropdown Problem

Why am I getting this error: "Error retrieving information from list: Functional Areas{"error":"-1,Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The field or property '...
0
votes
0answers
9 views

How to display multiple calendar icon calendar events using jquery

I would like to view a sharepoint calendar using this view here Happy to do it using rest or CSOM but looking for a jquery plugin. Anyone done something similar or where can i find such a plugin. ...
0
votes
1answer
758 views

HTTP 403 Forbidden error for getchanges REST API call

I'm new to sharepoint and stuck with the below issue: Objective: To query for changes (updated or deleted list items) from Sharepoint online sites using REST API from a C# Console application. I ...
0
votes
1answer
41 views

REST API for setting Multiple users people picker in SharePoint

I inherited a custom application from another developer who used REST API to create list items. Now the requirement is to add a multiple users people picker to the form. I am able to add a multiple ...
0
votes
1answer
25 views

SharePoint Rest Service sorting is not working

I am trying to add the sorting on SharePoint list using Rest services but it is not working. I am adding sorting on the basis of particular columns(Description, Col_Order), columns have values 1,2. ...
2
votes
1answer
128 views

SharePoint Online API for trending documents in mysite

Is there any API to fetch all the trending documents in My Site.
3
votes
1answer
94 views

Pass file name having space to update operation using REST API

I am using on premise SharePoint server 2016.I am using rest api to update a list.I have a list having space in it's name so while passing this name it causes problem.Is it possible to pass file name ...
0
votes
2answers
749 views

Using REST to read lists from SharePoint server and save them to database

actually I'm a Java EE developer and I want to access a SharePoint Webserver by using the SharePoint REST service. Thereby, my goal is to read the data from the lists and save them into a database (...
0
votes
0answers
15 views

REST API to move a folder with it's content

Is there any endpoint in Sharepoint 2016 REST API to move the folder and it's content to another location? Even if we have a copy folder and it's content it's fine. Please let us know. Note: we are ...
1
vote
2answers
46 views

SharePoint Designer 2013 Workflow: Reading Check In comment, programmatic elevation of permissions, alternatives?

I've created a workflow for a review process, that copies a file into a "working" library, takes the check-in comment through Rest API (with elevated permissions and full appinv access) and then saves ...
1
vote
1answer
59 views

why doesn't my REST call work on subsites

I have successfully used a REST call to create a list item in my root site and now need to use a second one to populate a list item in a sub site with the same data. Here are my dictionary settings ...
1
vote
2answers
10k views

Connect to Sharepoint Online REST API using Java

I'm trying to connect Sharepoint online REST API using Java. Retrieved cookies -rtfa and fedAuth. Also got xForm Digest value and trying to authenticate. But it always throws Authentication error. ...
-1
votes
0answers
22 views

Rest call is not working for subsites with subfolders

Rest API call is not working for post request to sub-sites with sub-folders. The code is similar to the link I attached. Can anyone provide some info on this topic? Connect to Sharepoint Online ...
1
vote
2answers
641 views

Sharepoint REST API 403 Error

I've setup an App in Azure using instructions from various places, including: http://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/ http://tech.bool.se/basic-rest-request-sharepoint-...
1
vote
3answers
69 views

Issue while retrieving data in SPFX

I am trying to get data in SPFx using REST and also need to use CAML for making the query. CAML is required as I want to filter based on certain groups the user is present in, so giving that up is not ...
0
votes
0answers
10 views

Authentication in SP On-Prem -Postman

We can authenticate SP Online sites via clientid/client secret and generate access token. How can we authenticate in on-prem environment? We don't want to pass username/password to authenticate the ...
1
vote
2answers
31 views

Update 1st row always of sharepoint list

I am using REST API to update in custom list of SharePoint Server. It is a dashboard and displays result as per logged in user. Is it possible to update 1st row always using REST API irrespective of ...
0
votes
1answer
120 views

Fetch list of lists based on content type by REST Api

I need to display 2 dropdowns to user, first populated with all subsites in a site collection that have at least one discussion list; and second dropdown with all the discussion lists available in a ...
0
votes
1answer
16 views

Disable delete link for lists using PnP

I would like to disable/hide delete link for couple of lists. I can easily do with SP scripts but not using PnP/CSOM. Last I looked AllowDelete is not available in the SharePoint.Client library. ...
0
votes
1answer
632 views

Problem with Sharepoint REST API CopyTo

Following problem with using ShP 2013 enterprise on premises and ShPDesigner2013: Given a site http://server/site which holds two document libraries "docs1" and "docs2". Both libraries hold *.docx ...
0
votes
2answers
344 views

REST Call to pull data from Parent Site to Subsite

I'm currently trying to pull data to my sub-site from a list within the Parent site using SharePoint Designer 2013 workflows. The current Response Code is merely saying "Forbidden" so I can ...
0
votes
0answers
22 views

Odd Behavior for Rest API lookup Column filtering

I've recently been working on a project requiring Rest Queries against a large SharePoint list (5000+ items) and ran into an interaction I can't quite find an explanation for. The scenario is that I ...
0
votes
1answer
20 views

I am getting 401 unauthorised exception while downloading the file in byte array

Code I am using: using (WebClient client = new WebClient()) { client.Headers.Add(HttpRequestHeader.ContentType, "application/json;odata=verbose"); client.Headers.Add(HttpRequestHeader.Accept,...
1
vote
3answers
33 views

Count of view items using rest api

I am trying to get count of items in a view of a custom list using SharePoint server 2016.I am calling web API for it. Web api: <site_url>/sites/DMS/_api/Web/Lists(guid'{xxxxxx-xxx-xxxx-xxx-...
1
vote
3answers
6k views

How to get listitem counts via rest api

I tried the below to get all item count of a list but it doesn't work /_api/Web/Lists/getByTitle('<list title>')?$select=ItemCount,Items&$expand=Items Any ideas how i can get an itemcount ...