Apr 01 2021 11:02 AM
Hi Team,
I am trying below code to convert classic page to modern page. But getting below error.
Kindly suggest the resolution for the same.
Code:
$modernPage = ConvertTo-PnPClientSidePage -Identity $page.FieldValues["FileLeafRef"] -Overwrite
Error: The 'ConvertTo-PnPClientSidePage' command was found in the module 'SharePointPnPPowerShellOnline', but the module could not be loaded. Fo
r more information, run 'Import-Module SharePointPnPPowerShellOnline'.
Thanks,
Harish Patil
Apr 01 2021 11:11 AM
@harishpatil I don't do any of that, I just rename the current homepage to home-original, create a new page called home and set it as the default. That page and all pages that are created afterwards are in the modern experience.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Apr 01 2021 11:33 AM