Hi,
I have a calendar list with two workflows and I saved it as list template. Also I have an event receiver which creates a list based in this list template I created, but I noticed that the list is created without workflows. If I create the list using the list template using SharePoint it does it with the workflows but my event receiver does not.
Here is my code:
(list == null){
web.AllowUnsafeUpdates =
true;var lstTemp = web.Site.GetCustomListTemplates(web);
var template = lstTemp[listTemplate];
var listId = web.Lists.Add(listName,string.Empty, template);
list = web.Lists[listId];
list.Title = listName;
list.OnQuickLaunch =
false;list.Update();
web.AllowUnsafeUpdates =
false;}
Thanks anyway.