views:

1564

answers:

2

I've created a list template based on an Issue list and it is saved in the List Template Gallery. Now how do I create a new list based on this template?

A: 
string internalName = "MyListTemplateName";
SPListTemplate t = null;
    foreach (SPListTemplate template in web.ListTemplates)
     {
       if (template.InternalName.Equals(internalName)
       {
          t = template;
          break;
       }
    }    
        web.Lists.Add("nameoflist", "description", t);
Johan Leino
A: 

It probably just took a while for the timer job to fire.

The template eventually showed up as an option under Lists > Create > Tracking section after a few minutes.

Even Mien