Engine tokens are not used with Add-PnPDataRowsToSiteTemplate

Open
#465 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, powershell
Domain
tooling

Research direction

Start with the Add-PnPDataRowsToSiteTemplate command documented in sharepoint/sharepoint-ps/sharepoint-pnp/Add-PnPDataRowsToSiteTemplate.md, then reproduce the flow using a template from Get-PnPSiteTemplate. Compare token handling for site groups with token handling when adding data rows. Done means the same engine tokens are resolved consistently when creating a new site.

Written by the indexing model from the issue text.

Description

When using Get-PnPSiteTemplate, in the template, tokens are used to make the sitegroups more generic :

  • {groupsitetitle}
  • {groupsitename}
  • {associatedownergroupid}
  • ...

image
image

Works like a charm, however those tokens are not used when adding datarows with Add-PnPDataRowsToSiteTemplate to the same template, making it inconsistent and unusable when creating a new site.

image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pnp/pnpframework

All issues in pnp/pnpframework

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.