A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

JQuery to populate html table doesn't work in Chrome

I am trying to get the time and date a SharePoint list was last modified. The code to call the date and time will live on a different SharePoint page. I've thrown the code below together based on bits ...
0
votes
0answers
14 views

Converting Graph reference to SharePoint Online site into REST reference

My situation is that I have an MS Graph reference to a SharePoint Online site and I want to connect to the same site through REST api. I find that if I read the site definition through MS Graph it ...
0
votes
1answer
25 views

How to implement licensing model in Custom SharePoint Online Solution?

We are creating one small product in SharePoint using Pnp framework and REST API. We would like to implement licensing model in product for selling purpose. Anyone has experience with such kind of ...
0
votes
2answers
33 views

Fetching the list of users who have permission to use SharePoint page

When using _api/web/siteusers? I get a lot of usernames and email adresses. With XPath I managed to filter them. Then I realized that there were a huge amount of usernames and email adresses who don'...
0
votes
0answers
57 views

Cannot access specific team site using SharePoint REST APIs

Goal: I want to create a folder in my custom team site in SharePoint using REST APIs. Steps I have followed: I have register my-app in SharePoint using following URL: https://***.sharepoint.com/...
1
vote
0answers
19 views

Create a taxonomy field as a site column in REST

I need to create a taxonomy column as a site column in a site collection programmatically with REST. I only have access to REST (via flow) , I have no development capabilities besides rest. I can ...
0
votes
0answers
10 views

ValidateUpdaeListItem Ajax

I would like to post an ajax call to update a list without updating the version. I was told I can make use of the ValidateUpdateListItem() function. However, when I try using it, I have the error: ...
2
votes
1answer
31 views

Multiple $filter in OData query

Here is my OData query: https://XXX.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=Id eq guid'xxxx'&$select=Id,Name,StartDate&$expand=Tasks&$select=Tasks/Id,Tasks/Name I ...
1
vote
2answers
17 views

Update Hyperlink in SharePoint list

I am trying to update hyperlink on SharePoint list with MS Flow, but I am getting error: The property '_metadata' does not exist on type 'SP.FieldUrlValue'. Make sure to only use property names ...
1
vote
2answers
34 views

How can I upload a document to a sharepoint subfolder using the REST API?

I'm using the official Office365-REST-Python-Client which basically is a wrapper to submit HTTP requests. I'm looking at the documentation and have been succesfully able to upload documents to the ...
0
votes
1answer
27 views

How retrieve managed meta data field values using rest api

I have a SharePoint list which has managed meta data field& lookup field. I want to retrieve the field values and show in HTML table format using rest api.
0
votes
1answer
34 views

Retrieve Project and all it's tasks by Id

I'm new to SharePoint, I have been trying to retrieve a single Project and all its Tasks by doing the following: https://servername.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('xxxxxxxx-xxxx-...
0
votes
1answer
23 views

NotFound coming back from SubmitFile

Hi I've got a hightrust application on sharepoint 2016. On development the submitfile worked although the website and the sharepoint site were both on the same server. Moving to staging and the ...
2
votes
1answer
32 views

Display image from a list(column-hyperlink/image) using REST Api

In my SharePoint Online site, I need to display images from a list on a page using REST API/jQuery. The images in the list are stored in hyperlink/picture column in the list. Can someone suggest me ...
0
votes
1answer
35 views

How to get a specific number of results for a Content Type value matching a specific string?

Example: I have a content type as FAQ. I need to retrieve only 8 FAQ results (along with other content types - no limit )from Sharepoint search api.
1
vote
0answers
33 views

Power automate Create a flow from an existing flow

I am looking for a method how to create a flow automatically from an existing one, I found that there is some Power Automate action like (Get flow, Create flow ... etc) and I believe Create flow will ...
2
votes
0answers
25 views

How to login via ADFS to SharePoint via REST API

I cannot seem to remotely authenticate via a REST API script for a SharePoint 2016 on premise installation that is using ADFS for authentication. In my case, I am using remote queries using ...
0
votes
1answer
42 views

400 bad request the request cannot be fulfilled due to bad syntax postman tool error

I am doing the POST operation from Postman tool to SharePoint online list but getting the 400 bad request the request cannot be fulfilled due to bad syntax error. Here are my configuration in Postman ...
0
votes
0answers
15 views

How To Update Sharepoint column names(such as AuthorName, Age, Gender) of a File in sharepoint site using Spring Rest services?

I have a requirement to upload a file and update it's column values such as AuthorName, Age, Gender to a sharepoint site Using OkHttpClient in Spring. I was able to upload the file to SP, but I'm ...
1
vote
0answers
21 views

How get task items according to current sorting using rest api

In a task list, we can move up and down items, now I want get items according to current sorting using Rest API, not by ID, Title or other fields. By default when I get the items without order option,...
0
votes
1answer
22 views

SharePoint 2013 Column Returning as “Null” rather than Double

The below list contains columns which are simply years (set to contain 0 decimal points). The current columns are 2016, 2017, 2018, 2019, and 2020. In use, the end user selects a date on a calendar ...
0
votes
1answer
26 views

Rest API to retrieve the read access shared link for a file in SharePoint

Is there any rest API to fetch the read access shared link for a fresh file added to SharePoint using the rest API? Below is the Create File Rest API url: http://siteurl/_api/web/...
1
vote
3answers
65 views

Create .xlsx file using Sharepoint Rest Api

Is their any specific headers need to set while creating .xlsx file in SharePoint? I have used the below Rest API code in postman to create the one but getting the attached error while opening the ...
0
votes
1answer
24 views

How do I insert a value in a radio button based choice column in a SharePoint 2013 list using REST API in JavaScript?

Here are the columns I have in the backend list. Here's how I am sending the data to the backend list through a POST request using AJAX. var item = { __metadata: { type: "SP.Data.ListNameListItem"...
1
vote
5answers
40 views

Import data from excel to sharepoint

Is it possible to use REST API to import data from excel file to sharepoint list? If No, how can I import excel to sharepoint list through the code! I am using SharePoint online
2
votes
1answer
63 views

SharePoint Online OOTB form access denied error

I have a SharePoint list form which has been customized using SharePoint Designer. I am using the script to populate logged in user details in the form. I have full control of the site and list. So ...
0
votes
1answer
31 views

How to get content of file in sharepoint using sharepoint rest api

I am using below endpoint to get the content of file in sharepoint: https://<site>/_api/web/GetFolderByServerRelativeUrl('folder name')/Files('file name')/$value?binaryStringResponseBody=true ...
0
votes
0answers
19 views

Create New Link Page (News Link) using REST API in SharePoint Online

I have a site page in one of the sub site in my site collection. On my root site collection i want to create a news link page (content type: repost page) whose Link property is set to the site page in ...
0
votes
2answers
23 views

I want sharepoint API to list last 5 files that got modified in a range of newer to older

I want SharePoint API to list last 5 files that got modified in a range of newer to older. How to get the top 5 files last modified.
2
votes
1answer
25 views

Call Taxonomy from .NetCore Blazor

I need to call the Sharepoint Taxonomy API. As CSOM is not available for .NetCore 3.0 I want to use the Taxonomy Internal Service Rest API: https://docs.microsoft.com/en-us/previous-versions/office/...
1
vote
0answers
9 views

RenderListDataAsStream REST API endpoint support in SP2013 On-Prem?

Is the RenderListDataAsStream REST API endpoint supported in SharePoint 2013 On-Prem? When using POSTMAN to craft a POST REST query, I'm getting a 'NotFound' return.
0
votes
0answers
18 views

Sharepoint check if user exists in a group with contribute permission

we all know that we can check if user belong to specific group or not using Rest API code sample code given below var endpointUrl=_spPageContextInfo.webServerRelativeUrl + '/_api/web/currentuser/?$...
0
votes
1answer
18 views

Get versionID while using quertText

I am executing rest query using queryText for content search which I was able to get and even the all the required metadata but I was able to get the versionID of particular file. Is there is option ...
0
votes
1answer
40 views

How to get images(randomly for specific status) displayed on 'card view' from 'images library' in SharePoint 2013

How to get images(randomly for specific status) displayed on 'card view' from 'images library' in SharePoint 2013, using REST API in SharePoint Designer 2013? I've created a column(hyperlink/picture) ...
0
votes
0answers
23 views

Getting 403 when updating client_LocationBasedDefaults.html in Forms folder in Document Library with Rest API

I'm attempting to use REST to update the client_LocationBasedDefaults.html file in my SharePoint Online's document library's Forms folder using the /_api/web/getFolderByServerRelativeUrl('/sites/...
2
votes
2answers
53 views

REST API: How to get error details of Field Validation errors, SPListDataValidationException

I am using pnpjs to add items to a list like so: this.spClient.web.lists.getByTitle(this.spList).items.add(requestList); If requestList has items that do not pass column validation of the Sharepoint ...
0
votes
0answers
11 views

SnapLogic App Only Authentication with SharePoint Online

Hello we are trying to access SharePoint Online from SnapLogic using REST and OAuth2 client credential workflow but we are stuck on configuring the Token URL. Specifically: I have registered a ...
1
vote
0answers
19 views

Is there a way to grant permissions to a sharepoint folder via REST APIs? [duplicate]

Currently I created a folder in sharepoint and break its inheritance from the parent library through a REST endpoint. Then I created permission groups and assign permission roles to them. But now I ...
0
votes
2answers
19 views

Unable to send a POST request to add a new item

I am trying to make a POST request to add a new item to a SharePoint list in SharePoint online, from a classic page. I am having this code in my custom action: var url = location.href var ...
0
votes
0answers
27 views

Upload fail for DriveItems in Drive of SitePages List

Upload fail for all the DrivesItems in Drive associated with SitePage list in a sharepoint site. Graph API request: > UploadSession uploadSession = > GraphCLient.Sites[{SiteId}].Drives[{...
0
votes
2answers
33 views

Get profile properties from person/group field using rest api [duplicate]

I have a list with a person field. I need users to fill in the field with their names but I need to get the following properties below from that field using rest API: Email Address Name(Full Name) ...
0
votes
0answers
31 views

Error 415 (uns. media type) when creating new item list on SP Online using REST API and POSTMAN

As you can see I'm successfully authenticated to my tenant as I can retreive the List info. But I just can't create an item. I always get an 415 error "Usupported media type" whatever the headers I ...
3
votes
1answer
61 views

ListItemChangesSinceToken doesn't page correctly?

I'm trying to page through getListItemChangesSinceToken to get an entire list and then any changes to it but I'm getting very inconsistent results. This is what I do to get the initial list of ...
0
votes
2answers
32 views

Get list of all content type associated with a list

I am using client code using JQuery and rest API where I have a requirement to bind a drop down control with the content type names associated with a particular list. I am working on SharePoint ...
2
votes
1answer
38 views

metadata error SP.FieldLookup

Arigato is a lookup field. I would like to change its value. I got error with FieldLookup. Can you help me?
0
votes
2answers
31 views

REST API $expand issues

I have a list that has a look-up column into another list. Ex: B list has a look-up column called 'navB' that is a look-up into a column in list A. The name of that column in list A is called 'navA'....
0
votes
1answer
16 views

Getting HasUniqueRoleAssignments with the graph API

Is it possible to get HasUniqueRoleAssignments with Graph API or do you have to use the SharePoint REST API? I tried: https://graph.microsoft.com/v1.0/sites/XXX-7386-4E2B-9506-A66FB82EA48B/lists/XXXX-...
0
votes
1answer
17 views

Creating folder in SharePoint Library using Rest API

I want to create a folder inside "Communications" document library in below site using rest api. https://contoso.sharepoint.com/sites/SP Can you please assist on how to do that?
0
votes
0answers
15 views

HTTP Error 400. The request is badly formed. Rename sharepoint folder REST API APEX salesforce

public static void UpdateFolder(string folderName) { GetAuthentication(); HttpRequest reqWrite = new HttpRequest(); HttpResponse resWrite = new HttpResponse(); Http httpWrite = new ...
0
votes
2answers
45 views

How to end workflow( to stop the running workflow) using rest API in SharePoint?

I have created one SharePoint 2013 designer workflow and it will run daily basis(Using : pause until Date).I want to "End the workflow" for the particular item by using Rest call or JSOM. How can I ...