Forum Discussion
Niclas Carlsson
Feb 13, 2017Brass Contributor
PnP PowerShell - PnP Provisioning package (pnp) with folders
Hi Is it possible to create a pnp provisioning file with a folder structure for a library by using Convert-PnPFolderToProvisioningTemplate or doesn't the current provisioning enging support pnp ...
Luis Mañez
Feb 14, 2017MVP
According to a comment in this post, it seems possible:
http://nickvandenheuvel.eu/2016/03/04/extract-and-apply-templates-with-office-dev-pnp-provisioning-powershell/
How are you referencing the Files?
http://nickvandenheuvel.eu/2016/03/04/extract-and-apply-templates-with-office-dev-pnp-provisioning-powershell/
How are you referencing the Files?
Niclas Carlsson
Feb 20, 2017Brass Contributor
Hi
I have used the sample ProvisioningSchema-2016-05-DirectorySample.xml provided https://github.com/SharePoint/PnP-Provisioning-Schema/tree/master/Samples and it doesn't seem like the Convert-PnPFolderToProvisioningTemplate take the files in consideration when the package is made. I have referenced the files like this in the xml file.
<pnp:Files>
<pnp:Directory src="c:\temp\DirectoryBulkLoadSample" Folder="BulkLoaded" Overwrite="true"
Recursive="true" IncludedExtensions="*.docx,*.pdf" ExcludedExtensions="*.xml,*.txt"
MetadataMappingFile="c:\BulkLoadedMetadata.json" />
</pnp:Files>