Skip to content

Pages "extraction" fails, when (modern) Announcements library was created #974

@nils-a

Description

@nils-a

I have a site, marked as the "home site" in viva connections. Since that time, the site also contains an "Announcements" library:
image

Since the time the Announcements-Library existed, Get-PnPSiteTemplate -out test.xml -Handlers PageContents -IncludeAllClientSidePages creates only empty templates, containing no pages at all.

My first quick finding was that

sitePagesLibrary = listCollection.Where(p => p.BaseTemplate == (int)ListTemplateType.WebPageLibrary).FirstOrDefault();

returns the Announcements library, instead of the Site Pages.

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