Forum Discussion

Scott Preston's avatar
Scott Preston
Iron Contributor
Apr 04, 2018

Save list as template on modern team site

Wonder if anyone can advise how I can create a list in a modern sharepoint team site from a template that I saved from a classic team site. I don't see any option from within powershell settings.

 

I have been getting my head around all the various sharepoint resources and have been creating lists etc on my classic team site for now but our users are starting to use the modern team sites created from Office 365 groups and I really would like to have them use some of the list templates I've created.

 

Any help appreciated.

  • To reuse the template it is necessary to place previously saved template file into the List Templates Library. However there is no direct access to this library from the SharePoint user interface.

     

    The workaround is:

    • create any new list
    • go to the list properties
    • save as template

    once saved there will be a link shown:

    then open this gallery and upload saved templates there!

    No need to mention that now new App can be created using those custom made templates

    • Save the list as a template in the source site
    • Go to the site "list templates" by going to [your site's URL]_catalogs/lt/Forms/AllItems.aspx
    • Upload the template
    • Go to Site Contents
    • Add > App
    • Select your template

     

    Here is an option to get the "List templates" link show in the "Web Designer Galleries" of Site Settings in a modern site, but you can go around that with the URL I gave you.

     

    • jcgonzalezmartin's avatar
      jcgonzalezmartin
      MVP
      You should better use Site Scripts / Site Designs to replicate your list or even PnP. In general, avoid to use the legacy Save as template option
      • Pablo Destefanis's avatar
        Pablo Destefanis
        Iron Contributor
        Fine, but sometimes we need to get something done, and the time to learn a library or a whole new framework is just not there!
  • Hi Scott,
    The ability to use lists based on saving the list as a template is something you cannot use in modern team sites. The alternative is to use PnP stuff.
  • SarahTurner's avatar
    SarahTurner
    Brass Contributor

    Scott Preston I've read this thread and am none the wiser about how to achieve this?  I am not competent in PnP etc but I have created a new team site with multiple doc libraries and associated permissions.   I just want to save it as a template as it would be very time consuming to recreate many times.   Can anyone help (simply) explain why this is not seemingly achievable through the UI - happy to run some powershell.  How did you achieve this in the end?

    Please help - this is the end of a long week trawling the internet for assistance and I'm getting nowhere! 

    • Raymond Boone's avatar
      Raymond Boone
      Steel Contributor

      SarahTurner  it's sad that you're stuck with PowerShell or a third party tool to do what used to be a few clicks in classic SharePoint.

      • SarahTurner's avatar
        SarahTurner
        Brass Contributor
        Agree.... however I can't even find a 3rd party tool that can do this... can anyone recommend? Or share a powershell script?
        I'm new to this and am tearing my hair out!
  • alaleh's avatar
    alaleh
    Copper Contributor

    Save list as a template on modern team site

     

    Hi, 

    If you wish to recreate the new list from existing list in SharePoint modern site,

    You can go to Site Content >New > List 

    Then choose "From Existing List" 

    Then you can select the site across your tenant and select the existence list you need to use it as a template. (See the screenshot)

     

    Goodluck.

     

     

     

     

  • jason_eperson's avatar
    jason_eperson
    Brass Contributor
    Definitely a frustrating issue...

    I too am trying to migrate a list+data from a SPO "Classic" site to a SPO "ModExp" site.

    ATTEMPTS

    #1 | Failed - I export the template.stp, and imported into the ModExp site. However, ModExp does not have the "Add App" option to covert the template file into a list like the "Classic" experience did.

    #2 FAILED | Used the ModExp create list from existing list. Successfully copied the list structure over from the "classic" site to the "ModExp" site. But the process does not copy the data over-"frustrating".

    #3 FAILED | Exported list to Excel. Imported into ModExp site. This brought over the data, but no structure (lose all the multiple choice columns, etc,)

    ***

    MAJOR QUESTIONS
    > Seriously, why does ModExp NOT have an option to import the list from the STP template file?
    > Why, does the ModExp import list feature NOT have an option to copy over data?
    > Why, if neither of the above options are available, why can't we import the list. After the list structure is cloned, have the option to import data from Excel?

  • khildebrand's avatar
    khildebrand
    Copper Contributor

    Since it took me a while to find and piece together all the info from different sources, in case anybody else is still looking for a simple way to migrate a List including data from one modern SharePoint Site to another (even across tenants), here is exactly how to do it using the "Save List As Template Method".


    How to move a SharePoint List including data from one site/tenant to another with Modern Sites:

    1) On the Source Site, make sure you have full SharePoint Admin and Site Owner permissions

    2) On the Source Site, make sure you have Custom Scripting Enabled

     

    3) On the Source Site, get the List GUID by going to List Settings, and then Name and Description and copy the URL:
    yourdomain.sharepoint.com/_layouts/15/ListGeneralSettings.aspx?List=[GUID]
    The GUID starts with %7 and ends with 7D

    4) Save the Source List as a Template by going to the following URL (replace GUID with the GUID of your List)

    yourdomain.sharepoint.com/_layouts/15/savetmpl.aspx?List=[GUID]

    Check Include Content


    5) Go to the List Template Gallery
    yourdomain.sharepoint.com/_catalogs/lt/Forms/AllItems.aspx

    And click on the name of the template to download the List Template (.stp file) to your computer.


    6) On the Target Site, make sure you have full SharePoint Admin and Site Owner permissions

    7) On the Target Site, make sure you have Custom Scripting Enabled

    😎 Open the List Template Gallery on the Target Site

    yourdomain.sharepoint.com/_catalogs/lt/Forms/AllItems.aspx

    9) Upload the template (.stp) that you previously downloaded.

    10) Go to Site Contents

    11) Click New > App

    12) Choose “Classic Experience”

    13) Select your Template

    14) Everything, list structure, columns, views, data, and attachments will be present in the new list



    Scott Preston 

Resources