7

I have the same need. I've come across this solution: https://danielthenerd.wordpress.com/2012/06/14/list-template-lookup-by-list-name-not-guid/ Basically, taking the STP, converting it to a CAB, extracting the Manifest.xml, editing it so that the GUID reference is replaced by a name, since the GUID is auto-generated at "run-time". <Field Type="Lookup" ...


6

How to identify a SharePoint List Template ID (in Browser) The global variable g_wsaListTemplateId is available on the client side when the List is rendered Navigate to List - Press F12 to launch Dev Tools (details) and switch to Console window and run: console.log(g_wsaListTemplateId) Export List Schema Construct the following query to export List ...


5

Activated "Team Collaboration Lists Feature" and it works now. It is important that this is set at the Site Collection level as well as the Site level. If you find that activating "Team Collaboration Lists Feature" does not show your "App", move to the Collection level and enable the same feature.


5

The method SaveAsTemplate is not exposed in CSOM API, there is a general suggestion opened: Expose List.SaveAsTemplate() for CSOM API Basically you can create lists using already existing custom templates, but programmatically you cannot create new ones. Site.GetCustomListTemplates(web); Web.ListTemplates What you can do is define the list schema xml and ...


5

As you know the BaseTemplate of discussion board, so you can apply $filter in your all lists /_api/Web/Lists?$filter=BaseTemplate eq 108 Make a GET request to the above URL, It will return all lists those are using discussion board template. Example using jQuery function getDiscussionBoardList() { $.ajax({ url: _spPageContextInfo....


5

You can save the list as a template, then create it where you want. The updates on the list view won't be migrated, so what you can do is: Open the first list in SharePoint Designer, by clicking on Lists and Libraries from the left menu in SharePoint Designer, then choose your list name. From the views menu, choose your view name where you have the ...


4

AFAIK, no. We faced this problem a while ago, and unfortunately, haven't found any solution. Now we're shipping version with Calendar lists only to new customers, while customers with previous versions of product are basically... hm... out of lack :)) In your situation I'd recommend you to create a console application, and move the items programmatically ...


4

I cannot test this because I dont have a dev environment at the moment, but the following should work: ListCreationInformation lci; List list; lci = new ListCreationInformation(); lci.Title = title; lci.Description = description; ListTemplate lt = ClientContext.Current.Web.ListTemplates.First(z => z.Name == "MyTemplateName"); lci.TemplateFeatureId = lt....


4

Do you want to get the information through code, or only through the UI? For example the ListTemplateId can be found as variable when you look at the source code of the site where the list is displayed (for example: var g_wsaListTemplateId = 100). You can get this value with javascript. Or you can use server API: SPList.RootFolder.Properties["...


4

You cannot create a new list based on a custom list template with only JavaScript Object Model. You would need to first use Visual Studios to create a custom List Definition. To achieve the same outcome using only JavaScript Object Model, you can do the following: Load all the properties and fields of your template list, and pass those to a function ...


4

You have to provide js file URL in JSLink property each time while adding your list view web part on the page. List and the list view web part are not the same thing. Saving the list as a template will give you the functionality of generating the same list with same columns and also with including data but will not include list view web part. List view web ...


3

The difference is, that a list created from a template is not coupled with the template after creation. For example: If you add a new field to the content type, all lists can be updated automatically to include the new field. That is not true for a list template. All definitions (content types, list templates) are stored within the content database, because ...


3

The <Receivers ListTemplateId="101"> specifies that the following receivers are for all lists created using the ListTemplate with Type=101, which is all the once created as pure "Document Libraries", but not "Asset Libraries", "Form Libraries", ... Custom List Templates. If you need to cover all these then you need to either: specify the entire list ...


3

I assume you want to create a list definition based on existing list definition that comes with SharePoint or installed by other solutions. I would just use the VS.NET > Add New Item > List Definition and select Custom List as base. Then locate the existing list template directory in SharePoint root and copy 1) schema.xml and 2) element file ...


3

I am going to provide an answer that will work in 2010. I will need to depend on others who are more versed in MOSS for that; however, I believe there is a similar stsadm command for the Powershell I will provide below. The Export-SPWeb command is able to be defined for a site, list or library. I have used this extensively to move a troubling list from ...


3

Separating each question. Your Id of the <ContentTypeRef ID="0x0120" /> specifies a reference to a content type to associate with the lis you are creating through the list definition. In particular, you are telling to associate Folder Content Type. By the other hand in the Elements.xml, type="1116" is wrong because doesn't exist (take a look here If ...


3

Can you use List.BaseType? Something like: var list = ctx.Web.Lists.GetByTitle(listTitle); ctx.Load(list); ctx.ExecuteQuery(); bool isDocLib = list.BaseType == BaseType.DocumentLibrary; Sorry if that's not valid C#, here's what I tested in JavaScript: ctx=SP.ClientContext.get_current() list=ctx.get_web().get_lists().getByTitle("Pages") ctx.load(list) ctx....


3

I had an similar Problem. Openup the sharepoint designer and go to the list. In the Details you will se the list guid Take the guid and open the pages with sharepoint designer in wich the error occur. Search for "WebPartPages:XsltListViewWebPart". In this there exist a attribute that is named ListId. Check if it is the same id from the list. After that ...


3

You can access the members of an enumeration (or any JavaScript object for that matter) using the C# indexer syntax. So the code you want would be something like: var typeList = SP.ListTemplateType["announcements"]; listCreationInfo.set_templateType(typeList); You can use a for loop to iterate all of the property values of the enumeration. var message = $(...


3

When you save your SharePoint site as a template, you’re saving the overall framework of the site – its lists and libraries, views and forms, and workflows. In addition to these components, you can include the contents of the site in the template, for example, the documents stored in the document libraries. This could be useful to provide sample ...


2

I think it is possibly for you to create another list and without editing template just copy content of old list to new one. Cpying is not problem, just short powrShell script, you can copy all field values, even author. We did this few times while migration content from one portal to another. If you have thousand records you can use batch insert operations ...


2

If I'm not wrong you can create site template and then import this template in Visual Studio 2010. When the template is imported, you can choose what elements do you want to include in new solution. You can choose your list. The VS2010 creates all needed files. After this you can simply package this solution.


2

Most probably it occurs since List.TemplateType and ListTemplateFeatureId properties for a out-of-the-box Custom List (Feature ID:00BFEA71-DE22-43B2-A848-C05709900100) are passed instead of your custom List. How to determine List TemplateFeatureId and TemplateType properties TemplateType:the list of available List template types could be found on this ...


2

I know this question is old but no one addressed the issue properly. To use javascript and a list templates it's actually quite easy. create a list create a template based on list goto site content - click on cog (top right) -> click on site content click on "add an app" click on the template you want to use. It will display as a popup. When the popup has ...


2

The problem is that every list in the template get a new ID when the list is created during the template provisioning. Therefor the filter and fields reference to non existing list. While the web parts reference the list via the url. The filter web part use hard coded ID's. The only way around this is to reconfigure or add a custom code that fix the ...


2

You must use the following method SPSite.GetCustomListTemplates to get the list templates create by end users. SPSite.GetCustomListTemplates Returns the collection of custom list templates, which are created by end users, from the specified site. SPWeb.ListTemplates property Gets the collection of all list definitions and list templates that ...


2

To determine ListTemplateType the following method could be used: /// <summary> /// Get List Template Type /// </summary> /// <param name="list">List client object</param> /// <returns>returns List template type </returns> private static ListTemplateType GetListTemplateType(List list) { try { return (...


2

I would suggest that you break the whole thing into two features, first one to deploy the List Template and second one to create the instance of the list based on template.. On the later one, you will need to define Feature Activation Dependency of List Template feature.. Both features can be hidden and you just need to activate the Feature that creates ...


2

Make sure to not use SPContext.Current in the FeatureReciever, this will be NULL in powershell (due to lack of HttpContext basically). This is one of the most common cause of errors in FeatureReceivers


2

Simple just go to Site Content -> Click on add an app -> on left top you can get search option then you can search by your list template name -> once you find click on that Template and create a list.


Only top voted, non community-wiki answers of a minimum length are eligible