Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.98 KB

File metadata and controls

76 lines (47 loc) · 1.98 KB
plugin
add-to-gallery

Disable Quick property editing (Grid view) from SharePoint list

Summary

This sample script will show you how to disable the Quick property editing (Grid view) from SharePoint list.

Example Screenshot

# Display name of SharePoint online list or document library
$listName = "My SharePoint List"

# SharePoint online site URL
$siteUrl = Read-Host -Prompt "Enter your SharePoint site URL (e.g https://contoso.sharepoint.com/sites/pnppowershell)"

# Connect to SharePoint online site
Connect-PnPOnline -Url $siteUrl -Interactive

# Disable Quick property editing (Grid view) from SharePoint list
Set-PnPList -Identity $listName -DisableGridEditing $true

Write-Host "Done! :-)" -ForegroundColor Green

# Disconnect SharePoint online connection
Disconnect-PnPOnline

[!INCLUDE More about PnP PowerShell]

# Display name of SharePoint online list or document library
$listName = "My SharePoint List"

# SharePoint online site URL
$siteUrl = Read-Host -Prompt "Enter your SharePoint site URL (e.g https://contoso.sharepoint.com/sites/cliformicrosoft365)"

# Get Credentials to connect
$m365Status = m365 status
if ($m365Status -match "Logged Out") {
    m365 login
}

# Disable Quick property editing (Grid view) from SharePoint list
m365 spo list set --webUrl $siteUrl --title $listName --disableGridEditing true

Write-Host "Done! :-)" -ForegroundColor Green

# Disconnect SharePoint online connection
m365 logout

[!INCLUDE More about CLI for Microsoft 365]


Contributors

Author(s)
Ganesh Sanap

[!INCLUDE DISCLAIMER]