
3,798 questions with Microsoft 365 and Office | SharePoint | Development tags
I am using sharepoint.migrationtool. How do I automate the migration?
Hi, I have folders in Share Point from local files, I want to migrate to local files to update SharePoint I use microsoft.sharepoint.migrationtool.advancedapp.exe to migrate But I want to automate the process I tried to run a JSON file like…
Microsoft 365 and Office | SharePoint | Development

How to access the User Information List in SPO
I'm trying to access the User Information List in my SharePoint site using Microsoft Graph, but the endpoint https://graph.microsoft.com/v1.0/sites/{siteid}/lists/User Information List/items?$expand=fields returns a "list not found" error, even…
Microsoft 365 and Office | SharePoint | Development

Error 'Cannot get value for projected field Approvers_x005f_EMail' when users without email were set to the field
SharePoint List Setup I have a simple list with a Person field Approvers which allows multiple selections. One of the list items has a user set to the Approvers but the said user does not have email configured. REST API…
Microsoft 365 and Office | SharePoint | Development

Trying to Publish InfoPath Form to SharePoint Online List/Library
I am Trying to Publish InfoPath Form to SharePoint Online List/Library however getting below error: I am trying to build a test InfoPath list/Library to test PowerShell and have only out of the box columns in the list.
Microsoft 365 and Office | SharePoint | Development

Accessing SharePoint Excel File via PowerShell App-Only (Client Secret) Returns 403
Hi I recently stumbled upon this thread while trying to solve a similar issue, and I really appreciated the clear answer that was given earlier. Link thread:…
Microsoft 365 and Office | SharePoint | Development

Retrieve site users via the SharePoint REST API using an access token generated through the client credentials flow.
I’m attempting to access the /_api/web/siteusers endpoint using the SharePoint REST API, authenticated via an access token generated with client credentials. However, I’m encountering the error: "Unsupported app-only token." I’ve already…
Microsoft 365 and Office | SharePoint | Development

graph search api /search/query wont match or return results when when searched on folder path
I am implementing search using graph /search/query api, our requirements include searching across multiple sites and within a site , within a drive, within a folder. Though documentation says search within drive/folder works but during i found out it is…
Microsoft 365 and Office | SharePoint | Development

Retrieve site users via the SharePoint REST API using an access token generated through the client credentials flow.
I’m attempting to access the /_api/web/siteusers endpoint using the SharePoint REST API, authenticated via an access token generated with client credentials. However, I’m encountering the error: "Unsupported app-only token." I’ve already…
Microsoft 365 and Office | SharePoint | Development

how-to-narrow-down-the-list-view-columns-width-for-all-users
We have a list view that contain 6 columns, and we might add extra columns in the future. Now how I can minimize the columns' width for all users? to better utilize the screen? I know I can drag the column boarder, but this will only get applied to me…
Microsoft 365 and Office | SharePoint | Development

I am looking for Python approach to accessing data in SPO
I am looking for Python approach to accessing data in SPO. Thanks in advance. My currently Python: import pysharepoint as ps sharepoint_base_url = "https://<abc>[.sharepoint.com/" username] = "username" password =…
Microsoft 365 and Office | SharePoint | Development

Can not generate Web Part Project with yo
I am following this article https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment?source=docs But when I run yo @microsoft/sharepoint This is what I get: _-----_ | | .--------------------------. |--(o)--| …
Microsoft 365 and Office | SharePoint | Development

Unable to Retrieve Attachments from SharePoint List Using Python
I'm using Python to fetch user details along with attachments (such as JPG/PNG files) from a SharePoint List. So far, I'm able to successfully retrieve the user details, but the attachments are not being returned. I’ve configured API permissions in Azure…
Microsoft 365 and Office | SharePoint | Development

We need to be able to build SharePoint 2016 WebParts with Visual Studio 2017 on Windows 10.
We need to be able to build SharePoint 2016 webparts with Visual Studio 2017 on Windows 10. How? Why do we need to have SharePoint Servers setup everywhere to build our SharePoint WebParts? Our source code needs to be security scanned (Fortify). Why do…
Microsoft 365 and Office | SharePoint | Development

How do I upload hundreds of local folders to Sharepoint via an automated process?
Copy literally hundreds of thousands of files across thousands of folders using automation, such as Powershell using native Microsoft tools, not using OneDrive, into an existing structure on Sharepoint Online
Microsoft 365 and Office | SharePoint | Development

SharepointOnline: How to remove site designated as a Brand Center Site?
I've been asked to changethe URL of a SharePoint Brand Center site but I can't. I've tried deleting it but it won't let me. How do I remove/deregister the Brand Center features from a Sharepoint site so that I can then delete and recreate the site with…
Microsoft 365 and Office | SharePoint | Development

Error applying Retention Label to SharePoint online list/library Using CSOM C#
Hi Community, I have created one console utility to apply retention label to SharePoint Online list/library and it was working perferctly. Below is my code. var applyToExistingItems = true; SPPolicyStoreProxy.SetListComplianceTag(clientContext,…
Microsoft 365 and Office | SharePoint | Development

I've trying to find a way to start the provisioning of a SharePoint site for a private teams channel. Apart from clicking on the Files tab manually, I want an automated way of doing this.
Referring to the Microsoft Learn documentation, I found out about the filesFolder http request which is not working. I'm getting the following error even after multiple retries for the same SharePoint site with delays: Folder location for this channel is…
Microsoft 365 and Office | SharePoint | Development

JSON formatting to display the exact date and time of creation.
Hello, We would need to change the formatting to show the exact time and date of creation. This could be solved using JSON formatting, but I don't know exactly what to write. I tried using ChatGPT, but I didn't get a working solution (the code below…
Microsoft 365 and Office | SharePoint | Development

SharePoint sharing link security
How to ensure the confidential when sharing the sensitive information in SharePoint ? My context is: I have 5 types of information and want to create sharing link for internal and external user. But for the external I want the expired link for the…
Microsoft 365 and Office | SharePoint | Development

Is there a way to iterate through the field collection of a SharePoint list and retrieve only the custom fields, excluding the built-in SharePoint fields?
Is there a way to iterate through the field collection of a SharePoint list and retrieve only the custom fields, excluding the built-in SharePoint fields? string fieldTypeClass = field.FieldTypeDefinition.FieldTypeClass; if…
Microsoft 365 and Office | SharePoint | Development
