pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
417 stars 645 forks source link

pnp:sequence SiteCollection Url="" doesn't accept {parameter:<url>} in urlpath #2085

Open chrriedel opened 5 years ago

chrriedel commented 5 years ago

Category

[x] Bug [ ] Enhancement

Environment

[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

I am building a Provisioning Template with a sequence inside. In the sequence I defined a SiteCollection with an URL Parameter. I want to handover a part of the URL via a Template Parameter. As this is described in the PnP Provisiong Schema Full 2018-07 Full Sample. I expect that this parameter is parsed by the provisioning engine and the SiteCollection I am handing over in the script call will be updated with my templates. If tried all combinations of parameter in the URL. (Setting the TenantPart as paramter:tenanturl, setting the SiteCollection Part as parameter:siteurl and setting the complete URL as a parameter:URL) but the only way it worked is to enter the Url hardcoded without parameters.

Observed Behavior

I expecte that the parameter:Url in Url="https://.sharepoint.com/sites/{parameter:SiteUrl}" will be parsed and not taken in clear.

Steps to Reproduce

Create a Template with a sequence. Apply the Template with: Apply-PnPTenantTemplate -Path .\Site_Template.pnp -Parameters @{'SiteTitle' = 'Title';'GroupTitle' = 'Group';'OwnerAlias' = 'user.name@tenant.domain'; 'SiteUrl' : 'myurl'}

Template.txt

chrriedel commented 5 years ago

any update on this one?