Skip to content

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

@kasperbolarsen

Description

@kasperbolarsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions