Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers
2k views

how to check if user exist in two groups rest api

I am using below rest api call to check if user exist in Admin group but how to check if user exist in more then one group ex Admin and Member group url: absoluteUri + "/_api/web/sitegroups/...
Ashok 's user avatar
  • 59
0 votes
1 answer
1k views

How to exceed the Sharepoint 5000 threshold in Rest-API Python

I can't use Office365-REST-Python-Client to retrieve Sharepoint files because it's only works on Windows not on Linux - Docker (it throws error: File "/usr/local/lib/python3.8/site-packages/...
Grandad36's user avatar
0 votes
1 answer
2k views

Upload Large File to SP Online in Chunks using Rest API - FinishUpload fails

I was trying to upload the a larger file (500mb) to SharePoint Online document library. I followed the way to upload the file in Chunks with the Article: Programmatically Uploading Large Files In ...
meeus's user avatar
  • 1
0 votes
0 answers
2k views

Download a file from SharePoint using REST API in VB.net

My requirement is to download a file from SharePoint (to my local machine) using Rest API and the code to be written in VB.net . I have installed Visual Studio 2019 and I have the SharePoint link ...
user102194's user avatar
1 vote
2 answers
1k views

How we can monitor users activity on SharePoint online without external analytics?

How can we monitor users activity on SharePoint online pages, such as watching a video or viewing PowerPoint or pdf or reading content on pages and also times that users stay in specific page? I want ...
Mahdi Sheikhi's user avatar
0 votes
1 answer
3k views

SharePoint Rest API for search functionality on list level

I was wondering is there any rest api endpoint available to utilize the search functionality directly in a list level? SharePoint is proviiding an option to search/find an item in list view. But is it ...
Jefin Mathew's user avatar
1 vote
0 answers
988 views

How to obtain access token for SharePoint REST API v1.0

I need to call SharePoint REST API v1.0 endpoints, i.e. https://<any-tenant>.sharepoint.com/_api/web/lists The caller is a multitenant ASP.NET web app, not related in any way to the tenant of ...
user17653882's user avatar
0 votes
1 answer
104 views

REST not "GET"ing data from inside SharePoint

I am trying to use REST to get data from inside a SharePoint list. The HTML/ASPX page that makes the request resides in the site assets library. It returns nothing. Any idea why? Please see below: ...
user5654858's user avatar
0 votes
1 answer
448 views

Updating managed metadata when posting Repost Page

I have a power Automate flow that creates a repost page in SharePoint Online. I want to add some managed metadata to the post when it is created but produce an error. Any direction I could be taking ...
James Stoffell's user avatar
0 votes
1 answer
332 views

How to get the page count of a PDF document stored in sharepoint through REST API?

From a salesforce site, we want to retrieve the page count of pdf documents stored in a SharePoint site, How to get this through REST or some alternative way?
Akshay Poddar's user avatar
0 votes
1 answer
603 views

Save Checkbox value in SharePoint list item SPFx

I am using below code in SPFx to create checkbox export interface IExampleState { isChecked: boolean; } constructor(props: IExampleProps) { super(props); (this); this.state = { ...
Ashok 's user avatar
  • 59
0 votes
1 answer
972 views

(401) Unauthorized error while accessing the Tenant details

I am trying to access SharePoint tenant details and able to get an accessToken using Oauth2 flow. then I used this token with CSOM to get tenant details as below. but I get 401 error . is there any ...
DevÁsith's user avatar
0 votes
1 answer
886 views

RenderListDataAsStream Rest API not returning Field in ViewFields

RenderListDataAsStream is not returning some fields specified in ViewFields. I need to retrieve ServerRedirectedEmbedUrl but doesn't return anything. If I run the following CAML Query specifying the ...
C.P.'s user avatar
  • 1
0 votes
1 answer
242 views

Programmatically check whether employee/user left the orgnization

We have sharepoint online site. We have one console application written in CSOM which send emails to users. We want to exclude users who left the orgnization. How can we identify user left the ...
SP Developer's user avatar
  • 3,085
1 vote
4 answers
760 views

Change a site address (URL) by HTTP Request

I want to change the URL of a modern team site (without group, STS#3) by HTTP Request. Which API request do I need to do? I already tried by using GRAPH API but it only updates the displayName and not ...
user101830's user avatar
0 votes
1 answer
165 views

Send Rest API's Post Query which should be Sorted by formula

I am trying to send a request using SharePoint 2013 Rest API (POSTQUERY) and my sort-list is a formula. When I am sending a GET request, it works fine as mentioned in below example: http://localhost/...
Adleron's user avatar
  • 53
0 votes
1 answer
301 views

SharePoint 2013, DataTables return [object Object] from LookUp Column

I'm trying to return value from a LookUp value to my dataTables. The only thing that returns is [object Object]. Here is an image of my List and result: I searched that I should add $expand in my ...
adams-j's user avatar
  • 307
1 vote
0 answers
92 views

How to get SharePoint user login name of user not a member of any site

I wanted to get the login name of all users and groups. I can only find ways to get users login names if a user is a member of some site, But I need data for each user and group which can be able to ...
santhosh saravanan's user avatar
0 votes
1 answer
158 views

Detect if email has an attachment

We have a document library where we store emails as documents. Some of these emails have attachments. Is there any way to detect if an already-stored-in-sharepoint email has an attachment?
steve's user avatar
  • 55
0 votes
1 answer
118 views

SharePoint 2016 workflow REST API call returning nothing

I have a workflow and I'm trying to get simple text from another list with an API call. The request headers are: Accept: "application/json;odata=verbose" and the same for Content-type. It's ...
Snowburnt's user avatar
  • 351
0 votes
0 answers
305 views

Get List item body content, format CanvasContent1

I'm own a website and I want to display on it Sharepoint data through the rest API. I managed to get Lists and lists items. But the content of the list item is in the key CanvasContent1. The ...
Alvin MUJKIC's user avatar
0 votes
1 answer
623 views

Is it possible to dynamically add new choice field values/options if I check 'Allow fill in choice' to true (REST API)

Is it possible to dynamically add new choice field values/options while creating a new list item through rest API if I check 'Allow fill in choice' to true? Example The choice field 'ChoiceFieldName' ...
Jefin Mathew's user avatar
2 votes
0 answers
1k views

SharePoint Server 2019 on-premise REST API Authentication

I need to read list data from SharePoint 2019 on-premise server, from an external server. I have tried calling the REST API but I am having trouble authenticating. Things I have tried: Calling REST ...
cenarpo's user avatar
  • 21
1 vote
2 answers
5k views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
H. Pauwelyn's user avatar
0 votes
1 answer
1k views

Sharepoint Rest API, Get files from a list throwing unknown 500 errors only when a file is present

I've been setting up an app to query a Sharepoint Document list for files (amongst other things). Querying {{mainLink}}sites/{{subsite}}/_api/web/lists/Documents/Files on postman with the following ...
The Lemon's user avatar
  • 103
1 vote
1 answer
480 views

Get a Document Set's description field via the REST API

I need to get the description field from my list of document sets. I have a for-loop set up with the titles of each of the document sets, I now just need to query the REST API to return a description ...
Ben Cooper's user avatar
0 votes
0 answers
461 views

Search REST search query with exact match, how?

We have a REST query to _api/search/postquery and it includes a query like this: ParentLink="https://{site}/{library}/{folder name}" Most of the time it is working correctly. But in some ...
Rothrock's user avatar
  • 3,010
1 vote
1 answer
207 views

Org Chart not working for People pIcker

Reference of plugin https://www.jqueryscript.net/demo/Fully-Customizable-Organisational-Chart-Plugin-With-jQuery-OrgChart/ I am using List schema as TeamMember(PeoplePicker),FunctionalManager(...
kumar's user avatar
  • 139
2 votes
1 answer
863 views

Power Automate Reminder flow error

I am trying to create a flow that takes the Expiry date from the list and sends an email to outlook. This is my list: This is my flow: I have added this string (Should send a reminder when 1 day is ...
ToBah's user avatar
  • 23
0 votes
3 answers
209 views

The data in API does not shown in the web part for User

I am very new to SPFx web part creation. I have created simple SPFx web part using typescript. Added package to app catalog then added in my page. The issue that I am facing is user doesn't read the ...
YASi's user avatar
  • 25
0 votes
1 answer
164 views

How to establish a real time connection to a list item using SharePoint Rest API

On my SharePoint home page I have a notification element that is ajax'd from a list item from the same site collection. I would like the user to always (or as often as possible) see the latest ...
Sateesh's user avatar
0 votes
1 answer
301 views

Adding a new item in the SharePoint list with multiple fields

My objective is to add a new item in a SharePoint list (Form) using REST API. My current code is: function AddData() { var listName = "Form"; CreateListItemWithDetails(listName, ...
Keshav Sharma's user avatar
0 votes
1 answer
748 views

SharePoint Rest API to select Url from File Version

I have used the following URL: https://xyz.sharepoint.com/teams/Analytics/_api/web/GetFolderByServerRelativeUrl('/teams/Analytics/Shared%20Documents/DataMaster')/Files('Transaction.xlsx')/versions ...
smpa01's user avatar
  • 125
1 vote
1 answer
669 views

Remove user from site group using PnP-SP in JavaScript

I'm trying to find a way to remove a user from a group using PnP-SP. My code is as follows: this.$pnp.sp.web.siteGroups.getById(this.selectedGroup.Id).users .remove(user) ....
Webweaver1021's user avatar
0 votes
1 answer
985 views

Create navigation item using REST API with non-existing link in SharePoint Online

I've stumbled upon issue where I need to create a link in navigation from root site which points to site collections. POST Request URL: https://contoso.sharepoint.com/_api/web/navigation/...
RolandsStrakis's user avatar
1 vote
2 answers
804 views

SharePoint REST API ensureUser call returns 400 Bad Request

My API call to my SharePoint site returns a 400 Bad Request when querying certain Microsoft 365 groups with the ensureUser API call. We have a requirement to use Microsoft 365 groups, so I'm trying to ...
Rob Hess's user avatar
1 vote
1 answer
737 views

Where is the secret list of field types kept?

I was trying to update a property on an existing SharePoint site column using the REST API. I found some tutorials like this Stack exchange post or this blog. They both have a __metadata property for ...
Rothrock's user avatar
  • 3,010
1 vote
1 answer
1k views

After file upload: modify properties

First: I am a noob and I use the REST API of SP server with Java, so no SDK involved here. I uploaded a file to a Document set. Now I have to modify the ContentType and some other custom fields (...
Oliver Busse's user avatar
0 votes
1 answer
445 views

In SPFx is it possible to check if we're getting data from a List or a Document Library?

I use PnP in an SPFx web part. I'm wondering is it possible to know if its a Document Library or a List that's being access in getByTitle? var colsToSelect = [ "Title" ]; console.log('...
Pete Whelan's user avatar
0 votes
1 answer
170 views

How to know if Lookup column is deferred or not using REST API

I'm trying to use the REST APi to get data from a sharepoint list. I first get the information about the columns: _api/Web/List<guid'some-id')/Fields. Then with this information I query the data ...
Henrique Castro's user avatar
0 votes
0 answers
33 views

Change the selected view of calendar web part using REST or JSOM

I have a requirement where employees from different departments will book for work from office, but only 30% employees can book for a day. Here I am using a content editor and calendar web part on a ...
Tezz Chaudhary's user avatar
1 vote
2 answers
1k views

SharePoint REST API List View Threshold

I have a SharePoint List with over 5000 records created by me. The below query when using ID in filter works. But when I Filter With CreatedBy me it gives me List View Threshold Error. Error: _api/...
Joy D'souza's user avatar
1 vote
1 answer
196 views

SharePoint clear roles to a folder error

I try to clear assignment to a SharePoint folder. When I test it is not showing any error but appears this: "BreakRoleInheritance": null And the folder maintain the same permissions. The ...
Ignacio Fernandez Soriano's user avatar
1 vote
1 answer
2k views

SPFx - How to get the URL and description from a hyperlink?

I'm trying to create a React SPFx web part which can render items from a SPO list. I am having difficulty if the column is a Hyperlink. (I can get the value if it is a string). Does anyone know how to ...
Pete Whelan's user avatar
0 votes
2 answers
1k views

Setting Author/Editor via REST ValidateUpdateListItem - Works Online but not OnPrem

So I have been using the ValidateUpdateListItem endpoint to set the created and modified dates with no problems in both 2013/2019 and Online and now need to do the same for Author/Editor fields. I ...
A.W.'s user avatar
  • 13
0 votes
0 answers
305 views

A provided field name ("_LikeCount"and "_CommentCount") is not recognized Graph Explorer

Hi i am trying to sort the result of my query by _LikeCount or _CommentCount of the Site Pages however i always got "A Provided field is not recognize" , any help is appreciated why it ...
BizApps's user avatar
  • 733
2 votes
1 answer
9k views

/_api/web/sitegroups/GetByName('GroupName')

We want to have a form in which a site member can request to add a team member, which is then automated. In power automate we need the ID of the group: /_api/web/sitegroups/GetByName('Test IRE Site ...
user16068355's user avatar
0 votes
1 answer
321 views

Not able to get Publish Start Date metadata using REST call from SharePoint Site Pages library

I am trying to get the News Post metadata using REST call. I am getting all the fields value but not Publish Start Date. This field is being added when I have turned scheduled option for the library. ...
sarbashis's user avatar
0 votes
1 answer
3k views

The property '__metadata' does not exist on type 'SP.Field'

I'm working on a flow that needs to create a column in a SharePoint library. I'm using the SP REST API for this. When I send start the I send the API request I get the following error:" The ...
musie's user avatar
  • 33
0 votes
1 answer
74 views

How to get notified when a new list or library has been created?

We need to react to new document libraries and/or lists being created in SharePoint sites. Is there a way to get notified when this happens? Graph change notifications currently only seem to exist for ...
Heinrich Ulbricht's user avatar

1
4 5
6
7 8
36