Closed ashwane closed 5 years ago
<?xml version="1.0" encoding="utf-8"?>
Thx for repotting this @ashwane , I'll try to repro and fix this for the upcoming release.
Fixed in the dev branch. Will be included in the July release
thanks a lot @jansenbe for super quick response and fixing it so fast. Gr8full to you mate. Can I update the PnP dll from dev branch and utilize this feature before july release? If yes, then please guide.
Thanks In advance,
I build my own PnP versions as well, but let's see if below easier approach works for you:
get-module -ListAvailable -Name SharePointPnPPowerShellOnline
will tell you where that isHi @jansenbe thanks for providing me guidance to update pnp commands. Unfortunately, it doesn't work I downloaded latest dlls as per above instructions and replaced dlls i,e SharePointPnP.Modernization.Framework.dll and OfficeDevPnP.Core.dll - I started getting below error.
Connect-PnPOnline : The 'Connect-PnPOnline' command was found in the module 'SharePointPnPPowerShellOnline', but the module could not be loaded. For more information, run 'Import-Module SharePointPnPPowerShellOnline'.
Then i try to load the module and I got below error.
Import-Module SharePointPnPPowerShellOnline Import-Module : Could not load file or assembly 'OfficeDevPnP.Core, Version=3.10.1906.0, Culture=neutral, PublicKeyToken=5e633289e95c321a' or one of its dependencies. The system cannot find the file specified
Can you please help If I am missing anything.
Then the only option is the grab the PnP PS source code from github and compile your own version...or wait until the July release
Hi @jansenbe Sorry for delayed response. That's alright, thanks for your help. Really Appreciate it !!!
hey @jansenbe - I have downloaded new version SharePointPnPPowerShellOnline 3.11.1907.0. and converted a page - It's now copying the user fields as well. Thanks Alot - I am updating my team to get latest ans stop doing manual updation of contact fields.
Problem Area
I am running below command
ConvertTo-PnPClientSidePage -Identity NewTest -PublishingPage -Overwrite -TargetWebUrl https://xxx.sharepoint.com/sites/Modernc -PageLayoutMapping c:\temp\custompagelayoutmapping.xml -CopyPageMetadata
I don't get any error as well.
All metadata are copied except "person or group". Below is my field types and xml mapping.
POC - person or group Title - TEXT Classification - Managed Metadata PublishingContactName1 - TEXT
<?xml version="1.0" encoding="utf-8"?>