{"id":1258,"date":"2020-11-09T21:43:55","date_gmt":"2020-11-09T21:43:55","guid":{"rendered":"http:\/\/www.kofrimpong.com\/?p=1258"},"modified":"2024-01-26T09:50:13","modified_gmt":"2024-01-26T09:50:13","slug":"export-and-import-sharepoint-document-list-schema","status":"publish","type":"post","link":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/","title":{"rendered":"Export and Import SharePoint Document & List Schema"},"content":{"rendered":"\n

Using the new PnP provisioning engine, you can export the schema for an existing document library or list, then import it in a new environment.<\/p>\n\n\n\n

Here is the code using SharePoint PnP powershell.<\/p>\n\n\n\n

Connect-PnPOnline \"https:\/\/yourtenant.sharepoint.com\/sites\/yoursite\" -UseWebLogin\nExport-PnPListToProvisioningTemplate -List \"Documents\" -Out template.xml\n\n#connect to new environment or site\nApply-PnPProvisioningTemplate -Path template.xml\n<\/code><\/pre>\n\n\n\n

Update<\/i><\/a><\/h4>\n\n\n\n

These commands have been renamed to<\/p>\n\n\n\n

Export-PnPListToSiteTemplate
Invoke-PnPSiteTemplate<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

Using the new PnP provisioning engine, you can export the schema for an existing document library or list, then import it in a new environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_wp_applaud_exclude":false,"footnotes":""},"categories":[10],"tags":[56],"series":[],"yoast_head":"\nExport and Import SharePoint Document & List Schema<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Export and Import SharePoint Document & List Schema\" \/>\n<meta property=\"og:description\" content=\"Using the new PnP provisioning engine, you can export the schema for an existing document library or list, then import it in a new environment.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\" \/>\n<meta property=\"og:site_name\" content=\"K. O. Frimpong\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-09T21:43:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-26T09:50:13+00:00\" \/>\n<meta name=\"author\" content=\"k.o.frimpong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kofrimpong\" \/>\n<meta name=\"twitter:site\" content=\"@kofrimpong\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"k.o.frimpong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\"},\"author\":{\"name\":\"k.o.frimpong\",\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a\"},\"headline\":\"Export and Import SharePoint Document & List Schema\",\"datePublished\":\"2020-11-09T21:43:55+00:00\",\"dateModified\":\"2024-01-26T09:50:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\"},\"wordCount\":48,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a\"},\"keywords\":[\"SharePoint Tips & Tricks\"],\"articleSection\":[\"SharePoint\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\",\"url\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\",\"name\":\"Export and Import SharePoint Document & List Schema\",\"isPartOf\":{\"@id\":\"https:\/\/www.kofrimpong.com\/#website\"},\"datePublished\":\"2020-11-09T21:43:55+00:00\",\"dateModified\":\"2024-01-26T09:50:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.kofrimpong.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Export and Import SharePoint Document & List Schema\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.kofrimpong.com\/#website\",\"url\":\"https:\/\/www.kofrimpong.com\/\",\"name\":\"K. O. Frimpong\",\"description\":\"SharePoint Developer & Azure Engineer\",\"publisher\":{\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.kofrimpong.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a\",\"name\":\"k.o.frimpong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.kofrimpong.com\/wp-content\/uploads\/2018\/12\/profile.jpg\",\"contentUrl\":\"https:\/\/www.kofrimpong.com\/wp-content\/uploads\/2018\/12\/profile.jpg\",\"width\":200,\"height\":200,\"caption\":\"k.o.frimpong\"},\"logo\":{\"@id\":\"https:\/\/www.kofrimpong.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/kofrimpong\",\"k.o.frimpong\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Export and Import SharePoint Document & List Schema","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/","og_locale":"en_US","og_type":"article","og_title":"Export and Import SharePoint Document & List Schema","og_description":"Using the new PnP provisioning engine, you can export the schema for an existing document library or list, then import it in a new environment.","og_url":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/","og_site_name":"K. O. Frimpong","article_published_time":"2020-11-09T21:43:55+00:00","article_modified_time":"2024-01-26T09:50:13+00:00","author":"k.o.frimpong","twitter_card":"summary_large_image","twitter_creator":"@kofrimpong","twitter_site":"@kofrimpong","twitter_misc":{"Written by":"k.o.frimpong","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#article","isPartOf":{"@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/"},"author":{"name":"k.o.frimpong","@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a"},"headline":"Export and Import SharePoint Document & List Schema","datePublished":"2020-11-09T21:43:55+00:00","dateModified":"2024-01-26T09:50:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/"},"wordCount":48,"commentCount":0,"publisher":{"@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a"},"keywords":["SharePoint Tips & Tricks"],"articleSection":["SharePoint"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/","url":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/","name":"Export and Import SharePoint Document & List Schema","isPartOf":{"@id":"https:\/\/www.kofrimpong.com\/#website"},"datePublished":"2020-11-09T21:43:55+00:00","dateModified":"2024-01-26T09:50:13+00:00","breadcrumb":{"@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kofrimpong.com\/export-and-import-sharepoint-document-list-schema\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kofrimpong.com\/"},{"@type":"ListItem","position":2,"name":"Export and Import SharePoint Document & List Schema"}]},{"@type":"WebSite","@id":"https:\/\/www.kofrimpong.com\/#website","url":"https:\/\/www.kofrimpong.com\/","name":"K. O. Frimpong","description":"SharePoint Developer & Azure Engineer","publisher":{"@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kofrimpong.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/8c0a5f021aa674b937009eb90695f78a","name":"k.o.frimpong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/image\/","url":"https:\/\/www.kofrimpong.com\/wp-content\/uploads\/2018\/12\/profile.jpg","contentUrl":"https:\/\/www.kofrimpong.com\/wp-content\/uploads\/2018\/12\/profile.jpg","width":200,"height":200,"caption":"k.o.frimpong"},"logo":{"@id":"https:\/\/www.kofrimpong.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/x.com\/kofrimpong","k.o.frimpong"]}]}},"_links":{"self":[{"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/posts\/1258"}],"collection":[{"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/comments?post=1258"}],"version-history":[{"count":2,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/posts\/1258\/revisions"}],"predecessor-version":[{"id":1809,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/posts\/1258\/revisions\/1809"}],"wp:attachment":[{"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/media?parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/categories?post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/tags?post=1258"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.kofrimpong.com\/wp-json\/wp\/v2\/series?post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}