People who code: we want your input. Take the Survey

Questions tagged [sharepoint-rest-api]

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

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

Post comment to a modern site page using REST api

Posting to the below endpoint for comments on a site page throws an error. Endpoint: /_api/web/Lists('<sitepagesguid>')/GetItemById(305)/Comments Response: The expression \"web/Lists('...
0
votes
0answers
7 views

I need sharepoint api Url that can help me to change metafileds i.e owner of folder once it got created via api

Looking for SharePoint URL that can be used to do POST operation for changing meta fields such as owner of the folder once folder got created through REST API Will be waiting for help. SharePoint ...
0
votes
0answers
10 views

Issue with using SharePoint's SendEmail API

We have a custom script that sends emails based on comments added to a page. We use SharePoint's SendEmail API to do this. At launch this was working fine though we had to sort out some issues with ...
1
vote
1answer
10 views

Get Group Details from Person or Group field using REST API?

REST API I am using: _api/web/lists/getbytitle('listname')/items(100)?$select=Initiator/EMail,RAReviewers/EMail&$expand=Initiator/Id,RAReviewers/Id In this RaReviewers column is a Person/Group. ...
0
votes
0answers
15 views

Full Text Search Across Document Library

I am attempting to build a powerapp on top of a sharepoint list that can do both full text searching of documents and filter by metadata in the document library. I am currently stuck on being able to ...
0
votes
0answers
19 views

Having problems uploading PDF file via REST API using C#

I am currently writing a C# program that uses the Sharepoint REST API to manage uploading and downloading of files. Currently can retrieve files stored in folders in a subsite without problems, but I ...
0
votes
3answers
29 views

Recursive function to handle list view threshold not working

We have a list with 0.5 Million items. The end goal is to get and handle threshold using recursive function. Followed the below article however didn't work as per our requirement. Rest to read more ...
0
votes
0answers
11 views

401 Error in SharePoint Online REST Call

I connect to a SharePoint site using its REST API (via Python), and things were working fine for me in SharePoint 2016. Our site admins migrated our installs to SharePoint Online, however, and the ...
0
votes
2answers
20 views

async function and await keyword not returning any value

I am trying to get the SourceID of the document in Async call using await keyword but I am not getting the value. I am new to this concept, could anyone tell where I am doing mistake. I have added my ...
0
votes
1answer
10 views

Retrieving files from sharepoint returns empty value array

I am able to retrieve list and list items just fine: var client2 = new RestClient("https://preactdk.sharepoint.com/sites/mysite/_api/web/lists/getbytitle('mylist')/items"); client2.Timeout = ...
0
votes
0answers
11 views

How to use etag for version controlling using ValidateUpdateListItem rest api? [closed]

I have tried giving the version number(not current version) in the IF-Match header in the request but the request is getting succeeded
0
votes
0answers
6 views

Permission issues trying to add projecetserver scope or access _api/ProjectData/* via HTML Requests using Bearer Token

Our server has Single-Sign-On, when I manually login, and go to below URL (in chrome) I am to get Projects XML OData Feed https://{server}.sharepoint.com/sites/pwa/_api/ProjectServer/Projects I need ...
0
votes
1answer
10 views

What query to use ti get recent files from a particular document library - Graph Api

I'm wondering if anyone has had to do a similar thing to be able to get all recent files from a particular site collection of sharepoint library To get lists used i know i can use this - https://graph....
0
votes
0answers
7 views

How to retrieve subfolders by content type using SharePoint REST API?

How can I retrieve subfolders inside a folder filtered by content type using REST API? Using /_api/web/lists/GetByTitle('Reports')/Items(1)/folder/Folders?$filter=ContentType eq 'DocSetCT' does not ...
0
votes
1answer
13 views

Get tenant wide access token for REST api calls

Testing REST calls in Postman, I registered an app in my tenant root site, got an access token but a call to get, for example, page content in a different /sites/ site collection fails with an access ...
0
votes
2answers
21 views

List all Communication site using sharepoint rest api

Is there SharePoint rest api to all retrieve communication site ? similar to following command Get-PnPTenantSite -WebTemplate SITEPAGEPUBLISHING#0
0
votes
0answers
15 views

SharePoint Online REST API monitoring

How can I track and monitor API calls made to my SharePoint Online? Is there any audit log or something to track these calls and diagnose bad API requests?
0
votes
1answer
26 views

For Sharepoint 2013, $expand and $select params does not work together

For sharepoint, we are trying to get files within a given list id along with its roleAssignments information. For this, we are using REST API /Lists(guid'list_ID')/items?$expand=File&$select=*,...
0
votes
1answer
8 views

SharePoint REST api SPQueryThrottledException

Wondering if anyone can help with an issue I am having with the SharePoint REST API. I currently have a Power Automate flow that runs on a daily schedule, this uses the 'SharePoint HTTP' action to get ...
0
votes
0answers
8 views

SharePoint 2016 get document set version history using REST API

I am looking for a way to get Document set version history using REST API. Is there a way to achieve this by using REST API? Thank you kindly.
0
votes
2answers
24 views

Create a list item using Sharepoint REST API and HTML

I'm working on SharePoint Server 2016. I have a modal with some input fields and a Submit Button. And I used jQuery to extract text from input fields in Modal. When I click on Submit, nothing is ...
0
votes
1answer
20 views

SharePoint REST API - Return current user list item permission level with item data

With an items query like this: _api/web/lists/getbytitle('Docs')/items Is it possible to also include what permission level the current user has on a given item? My list items have unique permissions, ...
1
vote
2answers
16 views

How to filter items with a date range using query parameters of Render list data as stream rest api? [closed]

Microsoft Documentation is providing filter operator which takes greater than, less than or equal to but it is working? RenderListDataAsStream URI parameters The documentation says we can use filterOP,...
0
votes
2answers
31 views

retrieve all files unders subfolders in sharepoint document library using REST

I have a folder in a document library and that contains subfolders and each subfolder contains files. I want to retrieve all the files in these subfolders using REST. Any help?
0
votes
2answers
22 views

SharePoint API BreakRoleBasedInheritance on Folder doesn't seem to work

EDIT: this just started working and I'm not sure what I did. I will update if I figure it out I am trying to do custom access control on folders under Documents on one of my sites. Using the API I ...
0
votes
0answers
10 views

Rest API Solution that displays text fields based on a number column

I have a Rest API Solution that almost does what I need it to. I need to display 2 columns of a list (Header and Text) on a page such that a number value assigned to the list item will change its ...
0
votes
0answers
23 views

Update members of SharePoint Group by using MS Graph API

Spent already a fair amount of time trying to figure this one out: Is it possible to create a SPO site collection and then update the members in a group in a SPO site collection by using an Azure AD ...
0
votes
0answers
11 views

SharePoint Api Rest upload file Shared Document PHP/Javascript

I have a concern. I need to send a file from my external website to a sharepoint folder, I was reading and I found that it can be done with the rest api but I can't know how to use it. the folder ...
0
votes
0answers
13 views

Can modern Sharepoint use api's to get data from external sites like Crowdicity?

I built a SP site back in "classic" days that pulled in content from Google books using a mix of Google api calls, content query web parts and calculated columns. Is it possible to replicate ...
0
votes
1answer
9 views

Update URL alternative text from PowerAutomate within link list. Error message concerning type

I want to update items in a link list. Part of is automatic generation of an URL. That URL should provide an alternative text. So I know, I have to formulate an http request instead of the update item ...
0
votes
0answers
41 views

How to get past the X-MSDAVEXT_Error=917656 issue when obtaining sharepoint online cookies?

I'm getting an issue basically described perfectly here: https://www.undocumented-features.com/2019/12/02/resolved-sharepoint-online-web-site-does-not-support-sharepoint-online-credentials/ To ...
1
vote
1answer
17 views

How to get the user's group(s) for sharepoint online site usig Microsoft Graph APIs

I am trying to get the user's group(s) for SharePoint online site using Microsoft Graph APIs. But I am not getting any equivalent graph API for the below SharePoint rest API : /_api/web/SiteUsers/...
0
votes
0answers
7 views

Why does an ODATA call to SharePoint REST API endpoint, not show the same information as the site page?

I have a different result, depending on whether I use OData or the SharePoint site page. https:/<...>.sharepoint.com/<....>/_api/ProjectData/Projects?$select=ProjectIdentifier,PlanStatus ...
0
votes
0answers
9 views

Jquery DataTable not rendering on Provider Hosted App

We are trying to display data from SharePoint to a datatable EmployeeDetails , However the table does not render completely as shown below Below is the HTML Code <html> <head> <...
0
votes
1answer
15 views

HTML showing up with inserted text via REST API

I am getting the value from a text field and then inserting the value into a SP list. The problem is that when I check the console the field shows HTML. var txtField = document.querySelector('#...
0
votes
0answers
21 views

Programmatically upload documents to shared folders from an external account

I am having this use case: Account A in tenant-1 Account B in tenant-2 B shares a folder within a SharePoint site of tenant-2 to A, with write permission. A then can see the shared folder within ...
0
votes
1answer
32 views

JavaScript CRUD operations in Provider Hosted Apps SharePoint Online

I am new to Provider Hosted Apps and starting off with the basics. Was able to save the data to the list, However facing challenges with edit, update and delete. Scenario: Created a simple form with ...
1
vote
1answer
10 views

Assign peoplepicker value in sharepoint from ASP.Net Web API 2.0

I have an API developed in ASP.net Web API 2.0 which inserts records into SharePoint 2013 list. I am able to assign values to all the fields from the API except for the people picker fields, says ...
1
vote
2answers
26 views

REST: Get edit / update metadata url / numeric id by guid

I'm creating a folder inside library via rest and as next step I search it again via /_api/web/lists/getbytitle('{docLibraryName}')/Items?$filter=(OpportunityNumber eq '{folderName}')&$top=1 to ...
0
votes
1answer
11 views

Get user current permissions or group name in list item change workflow?

In a workflow (with designer) on list/library item change events I want to get the current user's permissions, more specifically, the group name(s) to apply some conditions based on the permissions of ...
0
votes
0answers
31 views

How to use SharePoint rest API with Client ID and Client Secret in C# to get site collection?

Is there any way to connect SharePoint Rest API with Client Credentials in C# to get site classifications? I previously used Graph API to get those collections, but I need the same using SharePoint ...
1
vote
0answers
15 views

How do I update Content Type Templates with REST api v2.1

I have created a Content Type in SharePoint Online, through the Content Type Hub/Content Type Gallery, and uploaded a Word Document as it's Template. What I am trying to do now is to update that ...
1
vote
1answer
20 views

Does a single REST API call on SharePoint actually create 29 requests?

This API call https://{siteURL}/sites/...../_api/web/Lists/getbytitle('{name}')/items?$select=Title when viewed through chrome devtools, creates, apparently, 29 requests ... or am I misunderstanding ...
1
vote
1answer
30 views

SharePoint 2019 expand lookup of lookup

I am using SharePoint 2019. I have list as below structure: Department ID Title Process ID Title Department (lookup to department) BIA ID Title Process (lookup to process) Now my question is ...
1
vote
1answer
19 views

How do I acquire a single SharePoint page in PowerQuery?

This page - Site Contents - would be really useful to me: https://......sharepoint.com/sites/....../....../_layouts/15/viewlsts.aspx?view=14 I want to pull this table into a excel sheet by means of ...
0
votes
1answer
20 views

What is the most efficient, quickest, lightest way to check if a SharePoint list exists in a SSO/MFA environment?

Something that retrieves the whole list is the worst answer. Something that comes back with a binary true would be the best. The only way I can see how to do it currently involves pulling back masses ...
0
votes
1answer
18 views

How can I determine the site prefix of a SharePoint site via an API?

I use the SharePoint API to access a tenant SharePoint with a SharePoint REST API call that looks like {site_prefix}/_api/web/GetFileByServerRelativeUrl({path})/... where site_prefix is usually ...
0
votes
2answers
61 views

SP REST - add an existing group to site with REST api?

Is it possible to add an existing SharePoint group to a SharePoint site via SharePoint request action in Power Automate [or alternatively SP REST API]? I have only seen how to create a new group and ...
0
votes
1answer
50 views

How to get Everyone except external users using REST

I'm actually using Power Automate to set the permissions but cannot find the id or ultimately the Uri for get command. Here's what I'm using but doesn't work: _api/web/SiteGroups/GetByName('Everyone ...
0
votes
2answers
23 views

How to get roledefid along with sharepoint groups data using Rest API

We have a Permissions groups of around 4k in our site collection. In the same site I have created a sub site and given the permissions up to 2k groups. Now when I try to get the groups data in the sub ...

1
2 3 4 5
30