Move/Migrate SharePoint List Attachments to Document Library with Created and Modified Date
SharePoint list in which we have items and it has attachments, but SharePoint Search could not look inside Documents which are stored as Attachments in List. So to make it work we have to move all attachments inside the document library so SharePoint Search can crawl and return the results So to provide Keyword Search we need to Move the SharePoint Attachments to Document Library so that we can search in SharePoint Search. Here is code which will move SharePoint List Attachments to Document Library. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite("SiteURL")) { SPList docDestination = site.RootWeb.Lists["DocName"];...