Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Get-PnPSiteTemplate does not honor the includeItems parameter for the Lists handler

Aperta
#5,392 7 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@gautamdsheth ci sta già lavorando.

Dal 7/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

When exporting a PnP Provisioning template using Get-PnPSiteTemplate the config schema says that we can ask for list items to be included in the template. Here is the section from the schema:

              "includeItems": {
                "description": "If set to true list items will be included as datarows in the template",
                "type": "boolean"
              },

In my usage, list items are never exported and thus are also not added to target sites.

My guess is the <pnp:DataRows /> concept was only partially implemented. The documentation stops at DataRows, with DataRow missing.

When exporting with the following config section, I'd expect to see a <pnp:DataRows /> section within the <pnp:ListInstance/> for the Events list, but it is not present.

    "lists": {
        "lists": [
            {
                "title": "Site Pages"
            },
            {
                "title": "Site Assets",
                "includeItems": true
            },
            {
                "title": "Events",
                "includeItems": true
            }
        ]
    },
Lingua principale
C#
Stelle
905
Fork
409
Merge medio
2g 9h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pnp/powershell

Tutte le issue di pnp/powershell

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.