Read and share knowledge about Asp.Net, SharePoint, JavaScript and other Microsoft Technology.
SPWeb web = workflowProperties.Web; string[] listnames = (from SPList lst in web.Lists select lst.Title).ToArray(); foreach (string s in listnames) { web.Lists[s].SaveAsTemplate(s, s, string.Empty, false); }