Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Edit option is missing on Picture Libraries when created using PnP Provisioning #638

Open
kasperbolarsen opened this issue Aug 17, 2024 · 0 comments

Comments

@kasperbolarsen
Copy link

I have narrowed the issue to the Thumbnails view of the Picture view, but I don't have the skill to figure out WHY

This script will create a new site, add the Picture library, extract the XML version of the template, create a new test site, apply the template to that site. You will now see that the Quick Edit option is missing.
Delete the Picture library in the test site, and manually delete the "Thumbnails" view and apply the template again and now the Quick Edit option is there as expected

$conn = Connect-PnPOnline -Url "https://[YourTenant].sharepoint.com" -Interactive -ReturnConnection
$referencesite = New-PnPSite -Type TeamSite -Title 'QuickEditissueSite' -Alias "QuickEditissueSite" -Connection $conn
$referencesiteconn = Connect-PnPOnline -Url $referencesite -Interactive -ReturnConnection
New-PnPList -Title "TestPictureLibrary" -Template PictureLibrary -Connection $referencesiteconn
Get-PnPSiteTemplate -Out C:\temp\MissingQuickEditIssue.xml -Force -Connection $referencesiteconn -ListsToExtract "TestPictureLibrary"

$testsite = New-PnPSite -Type TeamSite -Title 'QuickEditTestsite' -Alias "QuickEditTestsite" -Connection $conn
$testsiteConn = Connect-PnPOnline -Url $testsite -Interactive -ReturnConnection
Invoke-PnPSiteTemplate -Path C:\temp\MissingQuickEditIssue.xml -Connection $testsiteConn
#note that the Quick Edit options are missing in the TestPictureLibrary list
break
Remove-PnPList -Identity "TestPictureLibrary" -Connection $testsiteConn -Force
#Edit the XML file, remove the Thumbnails view from the list TestPictureLibrary and apply the template again
Invoke-PnPSiteTemplate -Path C:\temp\MissingQuickEditIssue.xml -Connection $testsiteConn
#note that the Quick Edit is available now
break

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant