235 questions
-6
votes
0
answers
87
views
Access SharePoint REST API (/_api/web) from a C# backend — get token programmatically (no login popup) [duplicate]
Problem:
I need to call the SharePoint REST endpoint https://{tenant}.sharepoint.com/_api/web
programmatically from a C# backend service without any Microsoft login popup.
I already have these values:
...
0
votes
0
answers
67
views
Using Sharepoint Rest API _api/web/GetFolderByServerRelativeUrl('Shared Documents/test test/test#') ..Error Bad Request
I have this REST API call to SharePoint online, to check if a folder already exists in a document library :
GET _api/web/GetFolderByServerRelativeUrl('Shared Documents/test test/test#')
I am getting ...
0
votes
0
answers
57
views
How to show list and field displayName in a view using SharePoint REST API?
I am trying to copy an existing SharePoint List using SharePoint REST API.
I was able to achieve what I wanted to do, but the display names for the fields and the list itself is not displayed within ...
0
votes
1
answer
138
views
Replace file in SharePoint and OneDrive having sensitivity label applied
I have a file in SharePoint and OneDrive which have Sensitive label applied with access control. I want to repalce this file with some other file in my local system which doesn't have sensitive label ...
0
votes
0
answers
27
views
Unable to add item to the list on SharePoint Subscription Edition
I have a simple list called test2 and I am trying to add a row using the code. My code is as below:
using Newtonsoft.Json;
using System.Net;
using System.Net.Http.Headers;
using System.Security;
using ...
0
votes
0
answers
57
views
SharePoint Online (SPO) REST API not creating unique web root IDs
I am using the SharePoint REST API to automate the site creation process. I have created a Python script that calls the SharePoint Online REST API via the following endpoint:
https://{tenant}....
0
votes
0
answers
32
views
Sharepoint REST API paginated query in Power BI retuning 404 errors for rows where data exists in SharePoint list
I am running a query in Power BI on a large SharePoint list of over 10,000 rows. In preview everything works but when I attempt to load the table, I get 404 errors in my data for rows where I know the ...
0
votes
0
answers
102
views
How can I non‐interactively authenticate (using impersonation) and migrate OneNote notebooks for users now that Graph API app-only tokens are retired?
We’re building an unattended migration tool to move all OneNote notebooks, sections, and pages for ~2,500 Microsoft 365 users into Google Workspace. Until recently, our service used app-only (...
1
vote
0
answers
70
views
Call SharePoint Rest API with ADFS SSO
I am struggling to call SharePoint Rest API from a site which uses ADFS SSO Authentication. I have tried multiple solutions like this.
But I'm still stuck. Now I have built up a .NET Code to call the ...
0
votes
0
answers
46
views
Assign permissions to a user who isn't a member of a site via the REST API
I have a SharePoint library named "LIB_1" within the site "SITE_NAME".
I want to grant permissions to the user "[email protected]" for "LIB_1", but the user is ...
0
votes
0
answers
25
views
SharePoint REST API filter on date does not work without time
I am facing a strange issue in the production site where I am using below API to filter on date column
_api/web/lists/getbytitle('List Name')/Items?$filter=MeetingDate eq '2022-09-15'&$top=1
...
0
votes
0
answers
59
views
how to create a document set using rest api and capture the new document set?
I am using SharePoint on-premises SSE and I would like to create a document set using REST API and then capture the new document set. Can anyone share the code or thoughts how to achieve this?
my ...
0
votes
1
answer
174
views
GET document library metadata with Python (other languages welcome too)
I'm working on a back-up system where, at some frequency, the metadata columns in a document library in my SharePoint is backed up into an Azure SQL Database. I have registered an app in Azure with ...
0
votes
0
answers
39
views
Sharepoint Rest API access token runs out of time
I am trying to use REST API to update a specific column in sharepoint with data I get from a dataframe from an excel file, based on a matching column. The dataframe column size is about 25k rows. As ...
-1
votes
1
answer
103
views
SharePoint Rest api custom site home page
I am trying to custom SharePoint Home page by adding the Quick Links web page, how to achieve it by SharePoint Rest Api.
The Quick link will refer the the folder under Documents.
I know the Quick Link ...
1
vote
2
answers
374
views
Sharepoint Online api/Web/Lists(guid)/GetItems POST rest api suddenly start ignore $top and $skip parameters
Sharepoint Online api/Web/Lists(guid)/GetItems POST rest api suddenly start ignore $top and $skip parameters here is my request details
POST _api/Web/Lists(guid'428350ec-589a-46d3-973a-fa6dc2e52f04')/...
0
votes
1
answer
104
views
GetItems from a SharePoint list will convert the DateOnly field to the site time zone?
I have a SharePoint list with a column of type DateTime (DateOnly) field named StartDate1, and our site collection has UTC+2 time zone.
Now when i directly use SharePoint REST API "/_api/web/...
0
votes
1
answer
196
views
Add list item to Sharepoint using Sharepoint Online REST API
How do I add one or multiple values to a 'Person' type column in a SharePoint Online list? The only information I have is the full names of the people, such as 'Thiago Luan Pereira'.
from office365....
-1
votes
1
answer
289
views
2 requests to SharePoint Rest APi (Get & Post) inside a Batch request inside Power Automate. Get the result of the Get and send it inside the Post
Currently i am doing those 2 actions inside my Flow:-
Get the Info of a group mainly the PrincipleID using the group name
Pass the PrincipleID of the group in another POST request to Assign a ...
-1
votes
1
answer
615
views
Send a BATCH request to SharePoint with 2 POST and 1 PATCH. will ignore the PATCH
have this BATCH request to SharePoint Online. where i am doing the following:-
Move the item to Closed folder
Reset Item Permission
Update the ActiveStatus column to closed, as follow:-
--...
0
votes
1
answer
584
views
Pass multiple PrincipleIDs to the roleassignments/addroleassignment endpoint inside SharePoint Online REST API
I have a cloud flow, which get a semi-colon separated string containing Office 365 security groups names. Then I build an array after splitting the string.
After that for each group name I get the ...
0
votes
1
answer
324
views
Copy sharepoint binary files to OneLake with Pyspark
I am trying to develop a general-purpose pipeline able to ingest to a OneLake Fabric folder all the files contained in a Sharepoint Online folder, without any transformation, a 1 to 1 copy of those ...
1
vote
0
answers
116
views
SharePoint Item to pdf using SharePoint REST API
Objective is that. I am tring to read the Item of a list using Rest API and want to save that item details to pdf which should be similar to the item details UI when the item is opened in Modal or ...
1
vote
1
answer
970
views
SharedPoint REST API validateupdatelistitem fails and returns a 423 locked error if the page is currently in edit mode
SharedPoint REST API validateupdatelistitem fails and returns a 423 locked error if the page is currently in edit mode.
It works few days ago but it seems that after SharePoint new feature "Page ...
2
votes
1
answer
414
views
Get Documents from a List using Graph API
With the SharePoint REST API, there was the /files endpoint that did a recursive search and gave you all the files from a List. Is there anything like that with the Graph API? I've been looking and ...
0
votes
2
answers
968
views
Rename SharePoint site with Graph API or REST
I am looking for the ability to programmability change the name of a sharepoint site with either Graph API or SharePoint REST (or related powershell modules)
I have tried "Set-PnPWeb" this ...
0
votes
1
answer
114
views
How can I get the Section headers (title/displayName) from Sharepoint pages using Graph Api?
When I use the endpoint as shown below the information about Section headers seems to be missing.
YAML
GET /sites/{site-id}/pages/{page-id}/microsoft.graph.sitePage/webparts
For eg. These ...
0
votes
1
answer
196
views
How do I make images in SharePoint Online Modern UI clickable to alter content on the page itself?
I'm new to SharePoint and I'm looking for a way to create clickable SVG part in site pages. When a SVG part is clicked, I want specific content related to that part to display on the same page. ...
1
vote
0
answers
190
views
Sharepoint RestAPI Error: A 'PrimitiveValue' node or 'StartObject' node was expected
I am currently trying to update a Sharepoint Lists item image column using Sharepoint RestAPI.
The image is already saved to a list item as a file attachment, so I just need the thumbnail to show on ...
0
votes
1
answer
668
views
Getting error while calling the sharepoint API for List Data - List Items Data
I'm getting this error while calling the API for getting list Data using PostMan
https://hostname.sharepoint.com/sites/random_site/_api/web/lists(guid'be7ca91-2715-4b86-8299-7925f99b7536')/items
for ...
1
vote
1
answer
2k
views
Use Python to call SharePoint API get 401 response while I have the token
I have registered my App in Azure with API permission as below:
Here is my python code.
import requests
from msal import ConfidentialClientApplication
client_id = "xxxxxxxxxxxxxxxxxxxxx"
...
0
votes
1
answer
205
views
How to create a list field for uploading images through rest api in SharePoint
I am at a loose of how to create a field for the user to upload images in the sharepoint list. The field has to be created through the rest api with the use of PowerAutomate
Tried looking for SP.Field ...
1
vote
1
answer
927
views
Sharepoint access public folder via REST API without authentication
Is it possible to access a folder, which I made publicly accessible via link, from the SharePoint REST API (without beeing authenticated)?
Currently when I try to access:
https://<tenant>....
0
votes
1
answer
691
views
Is there a way to add attachments to a SharePoint list item using a field other than item_id (i.e., using my own primary key in my list)?
I'm looking to add 1 (or more) attachments to various list items based on my own primary key, rather than the auto-generated item_id field SharePoint uses.
The following is the template for adding an ...
0
votes
1
answer
275
views
Sharepoint Rest API office365 library - 403 Client Error - Permissions Sites.Selected
I am a global o365 administrator and a users asked me to get access to SharePoint via Pyhton script and he shared me the code from below questions:
HTTPError: 403 Client Error: Forbidden for url via ...
1
vote
1
answer
2k
views
Sharepoint Rest API office365 library 403 Client Error
I am trying to access a Sharepoint folder and retrieve the files within.
With the following code:
# Import libraries
from office365.sharepoint.client_context import ClientContext
from office365....
0
votes
1
answer
993
views
looking for SharePoint REST API end point to get list view items
we are trying to get SP list view items, means whatever the fields that are enabled in that specific view, those fields(columns) and items.
so what SP REST API end point is helpful
ex:...
to get SP ...
0
votes
0
answers
366
views
when I'm trying to get the items inside the Recycle Bin using CSOM, I got the result like nothing in the recycle bin
I have tried to get the collection of items inside the Site's RecycleBin.
By Using CSOM
```
var web = Site.Web();
var bin = web.RecycleBin;
context.Load(bin);
context.ExecuteQuery();
Console.WriteLine(...
0
votes
1
answer
370
views
SharePoint Server Getting WorkflowInstanceID with REST API
Company is using SharePoint Server 2013 and i'm trying to write a service for another application which people can track workflow status.
What i try is getting Workflow Instance ID with;
/_api/web/...
1
vote
1
answer
938
views
InvalidToken using SharePoint v2.0 REST API
I am trying to make CRUD operations of the TermStore using the v2.0 REST API. But I am having problems with the token. I can generate the token correctly but when I try to use it, for example on a GET ...
0
votes
1
answer
2k
views
Get the preview URL in SharePoint Document library via REST API
I am making a custom web part that connects to the Documents list on SharePoint via Fetch. This is the call that I use for retrieving information:
/_api/web/lists/getByTitle('Documents')/items?$select=...
0
votes
1
answer
886
views
Set a Managed Metadata Column Default Value in SharePoint with REST
Has anyone ever successfully set the default value of a managed metadata (single select) column in a SharePoint library/list via Power Automate/REST API?
I tried the following in Power Automate:
_api/...
0
votes
1
answer
1k
views
Get-SPOTenant and Get-SPOTenantSyncClientRestriction using Connect-PnPOnline
I was trying to connect to SharePoint online via Connect-SPOService where I do not have a username/password and have only clientId and clientSecret. While surfing online I get https://sharepoint....
1
vote
2
answers
1k
views
How to validate Azure Credentials Format (ClientID, ClientSecret, TenantID)
I've been trying to find in Microsoft documentation (learn.microsoft.com) format specifications for the ClientID, the ClientSecret and the TenantID in order to connect to SharePoint REST API v1.
I am ...
0
votes
1
answer
2k
views
official documentation about the SharePoint REST API end point for creating sharing links [closed]
Inside any SharePoint Online sites, we have the following four sharing options: -
Now I am building a custom REST API (one using Power Automate, the other using .NET Core)>> which should ...
0
votes
0
answers
134
views
How do I get a list of a user's SharePoint group memberships across a Microsoft tenant?
I have a list of users and for each I want to generate a list of all SharePoint groups that user is in, across the whole tenant.
What is the best way to do this?
So far I can list every site in the ...
1
vote
1
answer
432
views
SharePoint: How to get a term set by column-id in C#?
I try to get all terms in a set that is being used in a SharePoint list column which is a managed metadata column.
The Microsoft Graph API does not give any information about the term set in the ...
4
votes
2
answers
5k
views
Download File from Secure Sharepoint using Rest API - AudienceUriValidationFailedException
I am trying to download a secure file from our company's secure SharePoint. I have performed the following steps, and I still receive an AudienceUriValidationFailedException when trying to download.
...
0
votes
1
answer
182
views
jQuery Datatable Sharepoint list filter data by clicking on icons/badges
I have this code:
<div class="container">
<div class="card-deck">
<div class="card t1" >
<div class="card-header" id=&...
0
votes
1
answer
2k
views
How to restrict SharePoint Rest API access to only a specific site's list?
I have followed a tutorial to setup a SharePoint Rest API :
Link to the tutorial
With my generated client i am trying to get a list's items and posting new items to an existing list.
It is working ...