Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Feature: add-pnpfiletoprovisioningtemplate support folder sourcing #2290

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

stevebeauge
Copy link
Contributor

@stevebeauge stevebeauge commented Oct 3, 2019

Before creating a pull request, make sure that you have read the contribution file located at

https://github.com/SharePoint/PnP-PowerShell/blob/dev/CONTRIBUTING.md

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Requires #2288, replaces #1650

What is in this Pull Request ?

This PR replaces #1650, because it was simpler to start against the latest dev branch. As @erwinvanhunen requested, this PR did not add a new command, but new parameters to the existing one.

It allows to inject the content of a folder in a template. Either from a local folder:

PS:> Add-PnPFileToProvisioningTemplate -Path template.pnp -SourceFolder "c:\data\reports" -Folder "Shared Documents"

or from a remote folder :

PS:> Add-PnPFileToProvisioningTemplate -Path template.pnp -SourceFolderUrl "Shared Documents"

Steve B added 6 commits October 3, 2019 11:04
- parameter checking
- Methods split to improve maintenability
- speed improvements (StringExtensions.ReplaceCaseInsensitive)
- formatting
…either a local folder or a folder in the remote Web
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants