Closed czullu closed 5 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Strange - can not be reproduced again - {site} gets resolved as it should in
var viewElement = XElement.Parse(parser.ParseString(view.SchemaXml));
I see no way how {site} Token could not be added to Parser.
Category
[x] Bug [ ] Enhancement
Environment
[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013
Expected or Desired Behavior
Provision List View with NewDocumentTemplates for Modern Template from Extracted PnP
Observed Behavior
The Url in NewDocumentTemplates inside List View SchemaXml contains token {site} from Extract which is not Parsed on Provisioning and therefore fails.
Steps to Reproduce
Add for example a Word as Template in a Modern List via "+ Add template". Use PnP Powershell to get Template PnP - you can check XML and will see the {site} token in url below NewDocumentTemplates. Now use PnP Powershell to Apply Template to a new Site - if you go to the List -> New and Try to use your Entry - it will Fail.
Further Info:
ObjectListInstance ->createView : Needs special treatment like "CustomFormater" but to replace {site} token.
Sample Attribute: