question

rmatinsight avatar image
0 Votes"
rmatinsight asked JerryXu-MSFT answered

URL Mapping File Format, PnP PowerShell, ConvertTo-PnPPage Cmdlet

I can't find any references to the format of the Url Mapping File used with the ConvertTo-PnPPage cmdlet in PnP PowerShell. Can someone point me to a reference or provide an example?

Thanks!

Cmdlet ref page: https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/convertto-pnppage?view=sharepoint-ps

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered

Hi, @rmatinsight ,

This parameter enables you to provide a file with custom URL mapping definitions. It allows you to do more than just the default URL mapping.

If you want to perform additional mappings than the ones handle by the default mapping logic then you need to provide a file listing your custom URL mapping definitions. This is a simple CSV file without header listing the source and target URL values. You can use either a comma (,) or semicolon (;) as delimiter in your CSV file.

 https://contoso.com/intranet,https://contoso.sharepoint.com/sites/intranet
 /sites/hr,/sites/myhrportal

Reference: https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages-powershell
https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages-urlmapping


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.