Add-PnPDataRowsToProvisioningTemplate with empty -fields parameter not working?

%3CLINGO-SUB%20id%3D%22lingo-sub-2024346%22%20slang%3D%22en-US%22%3EAdd-PnPDataRowsToProvisioningTemplate%20with%20empty%20-fields%20parameter%20not%20working%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024346%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20use%20a%20modern%20SPO%20team%20site%20als%20a%20template%20for%20similar%20projects%20with%20a%20prefilled%20task%20list%20(very%20similar%20projects).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20a%20site%20template%20with%26nbsp%3BSave-PnPProvisioningTemplate%20and%20tried%20to%20add%20the%20Data%20rows%20with%26nbsp%3BAdd-PnPDataRowsToProvisioningTemplate%20and%20a%20empty%20-fields%20parameter%20but%20that%20does%20not%20work.%20I%20need%20exact%20the%20same%20task%20list%20as%20in%20the%20template.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anybody%20know%20if%20this%20is%20a%20bug%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20already%20discussed%20on%20this%20particular%20topic%20right%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Fquestions%2F211447%2Fcopy-spo-team-site-with-task-list-contensrow-data.html%3FchildToView%3D215328%23answer-215328%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECopy%20SPO%20team%20site%20with%20task%20list%20contens%2Frow%20data%20-%20Microsoft%20Q%26amp%3BA%3C%2FA%3E%26nbsp%3Bbut%20wanted%20to%20check%20here%20before%20I%20post%20a%20bug%20on%20github.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EChris%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2024346%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi,

 

I want to use a modern SPO team site als a template for similar projects with a prefilled task list (very similar projects). 

 

I created a site template with Save-PnPProvisioningTemplate and tried to add the Data rows with Add-PnPDataRowsToProvisioningTemplate and a empty -fields parameter but that does not work. I need exact the same task list as in the template.

 

Does anybody know if this is a bug?

 

I already discussed on this particular topic right here: Copy SPO team site with task list contens/row data - Microsoft Q&A but wanted to check here before I post a bug on github.

 

Thanks

Chris

 

0 Replies