Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
28 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)...
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 ...
1
vote
1answer
37 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
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
20 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
1answer
15 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
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 ...
1
vote
0answers
24 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
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
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....
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 '...
1
vote
1answer
20 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. ...
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
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
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. ...
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
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 ...
0
votes
1answer
43 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 ...
-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 ...
0
votes
0answers
11 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
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 ...
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. ...
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
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
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 ...
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
0answers
18 views

Union Operation in REST Search

We are making REST base search to sharepoint. However we have to make 2 different searches. For example, if we ask "indian employees" then sharepoint does not return a document which contains India (...
1
vote
1answer
40 views

Rest API throttle when filtering on look up column

I'm developing a custom sharepoint solution (SP 2016) where I'm retrieving data from a list with 5000+ items in it. In one of the API calls I'm trying to filter on a look up field where the list in ...
0
votes
1answer
26 views

An unexpected 'PrimitiveValue' node was found when reading from the JSON reader

I am getting this error while trying to post data to SharePoint list. It has one lookup field PostCategory. {"readyState":4,"responseText":"{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client....
1
vote
0answers
15 views

Copying list item between sites with REST/JSON HTTP Call from Workflow: Why wont these columns copy?

This is a re-post with more information hoping for a better response. I have 2 lists in a SharePoint site with the following columns: List 1 project ID = Single line of text event type = Choice ...
0
votes
0answers
9 views

Get Office 365 group members from REST API

I'm developing a solution to send SharePoint documents (links) to domain users sending an e-mail. This solution is based on a classic list form, where an user select a document and can choose user ...
0
votes
0answers
15 views

How to copy non-text site columns between sites using REST/JSON

I am attempting to set up a SharePoint 2013 workflow which will copy the contents of a list item from a subsite to a logging list on its parent site. I have successfully set up the HTTP web service ...
-1
votes
0answers
24 views

400 Bad Request when updating list item in SharePoint Online using HttpClient

I have written a REST API which to update the a document metadata in SharePoint. Document resides in a Folder in a Library. I have tried the following code: var stringData = ("{'__metadata': { 'type':...
1
vote
1answer
19 views

How to get more information about a BadRequest error from a REST call

I am attempting to write a workflow that will copy a newly created list item from a list on a subsite to a logging list on the parent site. I must have done something wrong because my workflow is ...
0
votes
1answer
15 views

Get SharePoint 2010 workflow history for a list item

Every time I create a list item, a SharePoint 2010 Workflow runs. This workflow sends an e-mail to a specific user. I've created a page with a CEWP and I would like to show a sort of "log" of e-mails ...
1
vote
1answer
37 views

Send and HTTP request to Sharepoint with attachment

I've created a flow that will send an email to my group whenever there's a new request from our SharePoint site. I would like to add/attach an attachment in sending the email from sharepoint list. I'...
0
votes
3answers
46 views

SharePoint online add link to a document library on new list item

starting to use SharePoint online and I am loving it so far. However I need some guidance (if anyone can guide me by giving me material where to look at). Basically I want to modify the ItemAdded ...
1
vote
1answer
31 views

How to get document names inside a folder in sharepoint document Library?

I have a document Library in which there are a number of different folders. Each folder contain different documents. I need to fetch the name of all the documents in a particular folder. So far I have ...
1
vote
0answers
9 views

Sharepoint 2016 REST API Authentication mechanism

We have a sharepoint 2016 instance and a C# application connects to it. we need to read documents and upload documents from C# application to Sharepoint using REST Api. Would like to see the industry ...
0
votes
0answers
23 views

Reading the contents of a file in a Sharepoint group folder

I'm trying to read the contents of a file in a Sharepoint group folder using the Microsoft Graph Explorer, however the query I'm using doesn't seem to be working: https://graph.microsoft.com/v1.0/...
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
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,...
0
votes
1answer
28 views

SharePoint REST query select items where column values are not equal

What is the REST query to obtain all items from a list where the value of two different columns for a given item are different. Take the query: http://<site_collection>/_api/web/lists/...
0
votes
3answers
29 views

How to get Active Directory data from SharePoint into android using REST API?

I'm new into SharePoint, i searched a lot for how to get Active Directory data into android using REST API, but i could not found any suitable solution up to that, for example i want to access logged ...
1
vote
1answer
34 views

break folder inheritance REST

I am trying to break inheritance using Rest. But I am getting error Undefined. I am using below code : var url = _spPageContextInfo.webAbsoluteUrl; var headers = { "Accept": "...
0
votes
1answer
53 views

I want to do full CURD operation in JQuery Datatable for SharePoint List item

I want to have Add, Edit, Delete options of Jquery datatable for my SharePoint list item. Have anyone implemented this. I know how to show data in datatable using SharePoint REST, But facing ...
0
votes
1answer
25 views

connect to sharePoint site behind a proxy using RestApi

Trying to connect to SiteCollection with RestAPI , but i got the error of , proxy not authorised . "The remote server returned an error: (407) Proxy Authentication Required." Any idea ?