I have created a custom list from another list in sharepoint, it is saved into the "List Template Gallery" I need to get this new list template by using web services, but the .GetListTemplates method of lists does not retrieve the custom templates. How can I get the custom templates?, so then I can use it to create a list.
Asked
Active
Viewed 1,098 times
0
3 Answers
0
string listName = "ListTemplateName";
foreach (SPListTemplate template in web.ListTemplates)
{
if (template.InternalName.Equals(internalName))
{
return template;
}
}

Johan Leino
- 3,473
- 1
- 26
- 27
-
He said he's using web services, not the object model. – Jason Watts Jun 12 '09 at 21:15
-
Sorry...missed that he needed it through a webservice call. – Johan Leino Jun 12 '09 at 21:21
-
Yes, I need web services please – danae Jun 12 '09 at 21:54
0
Have you tried this using this?
[MSDN][1]http://msdn.microsoft.com/en-us/library/dd586523(office.11).aspx
It should retrieve all the lists including the List Template Gallery, wich is hidden...

v3ga
- 177
- 3
- 12