Closed RogerZhang-CatapultSystems closed 8 months ago
@RogerZhang-CatapultSystems : thanks for reporting this, I've just pushed a fix. The next nightly builds of PnP Core SDK and PnP PowerShell will have this fix. I'll close the issue, but please re-open or create a new one in case you still experience issues.
Category
Describe the bug
We have ViVa Enabled in root site collection, then announcement library will be automatically created. When we run Get Page cmdlets, it always give us not exists error, but actually there have 13 pages . After investigation I found the PnP core code logics: Based on the site pages filter expression, announcements library match it. And in line 587, if have multiple results, it will take the first one. In my scenario, the announcements will be returned, which result in can't find pages in announcement library.
I have tested the get pages cmdlets in PnP.Powershell module from 1.12.0 to latest, the issue always repro.