3,967 questions with Microsoft 365 and Office | SharePoint | Development tags

Sort by: Updated
2 answers

Grant-PnPAzureADAppSitePermission does not work when setting read permission to personal site

Hi, Is it expected that the PowerShell command Grant-PnPAzureADAppSitePermission does not work when granting read access to a personal OneDrive site (-my.sharepoint.com)? When I tried running this command: Grant-PnPAzureADAppSitePermission -AppId…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-16T23:19:20.2366667+00:00
Melvin 40 Reputation points
commented 2025-12-18T17:50:34.25+00:00
Melvin 40 Reputation points
2 answers One of the answers was accepted by the question author.

Most Efficient Way of Granting an Application Read Permission to OneDrive Sites of a Group

Hi, Is there a one-click way to grant an application read permission to access all the OneDrive sites of the users that are members of a specific group when the application only has a Sites.Selected permission? Right now what I do to do this is to do…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-18T02:21:51.8766667+00:00
Melvin 40 Reputation points
accepted 2025-12-18T17:17:42.55+00:00
Melvin 40 Reputation points
1 answer One of the answers was accepted by the question author.

Pages with different access permissions in SP

Hi! So I am creating different pages that is for editors and validators (it has links to private folders in private libraries and this part should be private, I know that libraries and lists can edit unherit permissions but I can't see where I can change…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-17T13:45:08.9666667+00:00
Charlie Martharper 205 Reputation points
commented 2025-12-18T14:51:07.0766667+00:00
Michelle-N 9,680 Reputation points Microsoft External Staff Moderator
2 answers

Move sharepoint files error "problem deleting folder.Folders that have subsites can't be deleted. "

i am using power automate to get files only from a site then move those files to another site, but on some files i am getting this strange error:- /sites/Operations-Archive/Documents/Information Technology/Board Portal/Board and Committee…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-10T17:54:51.54+00:00
john john Pter 1,385 Reputation points
commented 2025-12-18T14:40:22.7966667+00:00
Matthew-P 7,945 Reputation points Microsoft External Staff Moderator
1 answer

Creating an advanced searcher, getting files of a library

Hi! So I am using PNP Modern search in a sharepoint site, but I want to search the files of one library with multiple folders and files. So when typing words in the search box, appear filters in the left with the choice column type. So when nothing is…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-18T08:11:55.3333333+00:00
Charlie Martharper 205 Reputation points
edited an answer 2025-12-18T12:52:34.4966667+00:00
Michelle-N 9,680 Reputation points Microsoft External Staff Moderator
1 answer

Is there a supported way to embed editable SharePoint Word documents in a third-party web application?

Scenario We have a SharePoint Online tenant managed by our organization. Word documents are stored in SharePoint document libraries, and users have appropriate permissions (view/edit) assigned via Microsoft Entra ID. We are building a custom web…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-18T09:56:49.17+00:00
Sashakt Pathak 0 Reputation points
answered 2025-12-18T12:51:04.19+00:00
Steven-N 16,110 Reputation points Microsoft External Staff Moderator
5 answers

How to use calculated time between in sharepoint

Hello i am doing this code in sharepoint lists but get syntax error when doing this, what can i do instead?

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-11T07:44:55.0633333+00:00
Örnvall Andreas 0 Reputation points
edited a comment 2025-12-18T08:18:23.8633333+00:00
Jayden-P 13,190 Reputation points Microsoft External Staff Moderator
1 answer

Sharepoint List Metadata column - Graph API

Hi, I am developing an app using Microsoft Graph API specifically for getting Sharepoint data. I am having trouble to get one of the column from a list using this URL: …

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-18T02:06:16.71+00:00
Julio Bellano 0 Reputation points
edited a comment 2025-12-18T06:15:02.69+00:00
Julio Bellano 0 Reputation points
1 answer One of the answers was accepted by the question author.

Where do I get logo icons in SharePoint

Hi, I was thinking where I could get this logo icons: Someone knows? I am creating pages and in some templates they appear, but would like to know where is all the icons.

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-16T14:05:31.1066667+00:00
Charlie Martharper 205 Reputation points
accepted 2025-12-17T09:43:54.4233333+00:00
Charlie Martharper 205 Reputation points
2 answers

Is Creating Multiple ClientContext Instances Efficient in CSOM for one Site Url?

Is it efficient to create a new ClientContext for each site URL and for each query, such as getting site users, lists, groups, and group members from the Web object? These queries can return a very large number of items, and CSOM does not support paging…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-16T12:38:22.3133333+00:00
Dinesh 60 Reputation points
commented 2025-12-17T09:29:49.2533333+00:00
Gabriel-N 10,210 Reputation points Microsoft External Staff Moderator
1 answer

How to copy permission, groups, permission level from one SharePoint online site to another using PNP powershell

How can we copy permissions, groups, permission level, unique permissions present on one sharepoint online site to the other

Microsoft 365 and Office | SharePoint | Development
asked 2025-07-17T15:38:51.2866667+00:00
Surabhi Akulwar (IN) 0 Reputation points
commented 2025-12-17T08:52:53.27+00:00
Sebastien QUEROL 0 Reputation points
2 answers

1) Is there a supported way to programmatically “resubmit” a specific failed cloud flow run (similar to the UI’s Resubmit), via connector or API? 2) If not, what’s the recommended design to achieve auto‑reruns?

For example, should each target flow expose a Child Flow or HTTP trigger and I maintain a mapping (e.g., Flow ID or a key) in SharePoint to call the right one? Is there a way to invoke flows dynamically by ID at runtime (Power Automate…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-15T17:23:21.8+00:00
svc_rpa_pa 0 Reputation points
commented 2025-12-17T08:04:38.07+00:00
Steven-N 16,110 Reputation points Microsoft External Staff Moderator
2 answers

How should I properly optimize batching, retries, or query shaping to make this process stable at scale in SharePoint Online?

operations in SharePoint Online using the PnP Core SDK. I have a list with around 25k items, and when my script tries to perform batched updates (around 200–300 items per batch), SharePoint intermittently returns 400 Bad Request or sometimes 500 Internal…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-12T12:24:43.2066667+00:00
Buchanan Christopher 40 Reputation points
commented 2025-12-17T08:02:12.9266667+00:00
Steven-N 16,110 Reputation points Microsoft External Staff Moderator
1 answer

Need API to Determine if OneDrive/SharePoint Document Is Open or Locked

We are building a solution that programmatically creates document versions in OneDrive/SharePoint using the Microsoft Graph API. Our process iterates over a list of files and re-uploads the content to create a new version for each document. The challenge…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-10T07:00:16.4666667+00:00
Chetan Kotwal 0 Reputation points
commented 2025-12-17T08:01:07.0666667+00:00
Steven-N 16,110 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Formatting code field for Form in Sharepoint is too small

When using the "Add an Item" function in Sharepoint I get the standard form. That can be customized by using the "Configure Layout" option. You can then add Json code to format the Form. Unfortunately, the field to add the…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-08T10:22:48.6133333+00:00
Christer Ericsson 20 Reputation points
commented 2025-12-16T21:06:25.46+00:00
Dumenil, Lory [USPB] 0 Reputation points
3 answers

2147467259 cannot complete action when viewing permissions on restored files in Sharepoint Online

In multiple tenants I am seeing -2147467259, Microsoft.SharePoint.SPException cannot complete action when viewing the permissions on restored files (in Onedrive for Business). When calling Get-PnPProperty with -Property HasUniqueRoleAssignments or when…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-12T13:53:58.4933333+00:00
Jos Lieben 1 Reputation point
commented 2025-12-15T10:20:08.92+00:00
Steven-N 16,110 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

JSON column formatting not applying conditional styles consistently

I am using JSON column formatting in a SharePoint Online list to highlight rows based on a status field, but the conditional formatting only works for some items and seems to ignore the rule for others. I’m using a simple equality check in the JSON, and…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-10T14:19:55.7966667+00:00
Aleida Lawson 40 Reputation points
accepted 2025-12-15T05:39:46.0933333+00:00
Aleida Lawson 40 Reputation points
1 answer

Sharepoint Embed Code, open to page

Hi, when using sharepoint online, you can easily generate an embed code, basically an iframe, that displays a document on a site other than sharepoint. It looks like this: <iframe…

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
asked 2023-10-25T11:53:57.9766667+00:00
Van Hengel, Peter 5 Reputation points
commented 2025-12-14T19:58:37.5166667+00:00
Jason Norman 0 Reputation points
2 answers One of the answers was accepted by the question author.

Can we get the total size of data in GB that have not been modified in the last 5 years

Can we get the total size of data in GB that have not been modified in the last 5 years inside all the sharepoint sites? thanks

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-10T17:42:43.6666667+00:00
john john Pter 1,385 Reputation points
accepted 2025-12-12T10:22:46.8566667+00:00
john john Pter 1,385 Reputation points
2 answers One of the answers was accepted by the question author.

Azure function and IDCRL

I am reading this article about the retirement of Microsoft SharePoint: Retirement of IDCRL authentication protocol and enforcement of OpenID Connect and OAuth…

Microsoft 365 and Office | SharePoint | Development
asked 2025-12-11T13:21:02.5466667+00:00
john john Pter 1,385 Reputation points
accepted 2025-12-12T10:21:11.5033333+00:00
john john Pter 1,385 Reputation points