Posts

Showing posts from October, 2013

Exporting Documents (folder structure) from SharePoint to Local Drive

http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx?pr=blog

SharePoint 2010 List view Print

Please use the below URL for WSP download http://spprintlistbutton.codeplex.com/

Create a SharePoint Custom Action to Zip and Download a Document Set

Image
Here’s the URL to the built-in document set downloader page: {SiteUrl}/_layouts/DocSetExport.aspx?List={ListId}&ID={ItemId}. It takes in the GUID of the list and the ID of the document set. Here’s an example: http://sharepoint2010/sites/docman/_layouts/DocSetExport.aspx?List={4E2D11F5-7500-476A-B001-62A7BF92FD50}&ID=10 Adding a Custom Action to the Document Set List Item Menu using SharePoint Designer To add a custom action, open the site in SharePoint Designer and navigate to the document set list. Add a new list item menu custom action: Provide a Name, Description, and Navigate to URL: Save the custom action, and test it: I want to mention that there is a drawback to this approach. The custom action will show up for every list item, not just the document set. The list item menu will appear on documents in the document set as well: Adding a Custom Action to the Document Set Ribbon using SharePoint Designer We can also use SharePoint Designer to add a button ...

Update Hyperlink Field in SharePoint with PowerShell

I want to change the URL in list item from https://Texas.com to https://ta.com  using Powershell script 1) copy & paste (change the URLs and Listnames and field) the below script and name it with extension .ps1 (ex: ItemURLChange.ps1) #Add-PSSnapin Microsoft.SharePoint.PowerShell $siteUrl = "http://sharepoint/SiteCollection/SiteName" $webName = “SiteName” $listName = "Name of your list" $spSite = new-object Microsoft.SharePoint.SPSite($siteurl) $spWeb = $spSite.OpenWeb($webName) $spList = $spWeb.Lists[$listName] foreach($Item in $spList.Items ) { $ofldurl= new-object Microsoft.SharePoint.SPFieldUrlValue($Item["URL"]) $ofldurl.URL = $ofldurl.URL.Replace("Texas", "ta") $ofldurl.Description = $ofldurl.Description.Replace("Texas", "ta") $item["URL"] = $ofldurl $item.update() } $spWeb.Dispose() 2) Open the Powershell command and run using the below command PS C:\temp...