3,967 questions with Microsoft 365 and Office | SharePoint | Development tags
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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…