Category Archives: SharePoint

Get SearchServiceApplication in PowerShell

In C# when retrieving the default SearchServiceApplication object you might do something like the following, if you were trying to initiate a new Schema object, for example: SPServiceContext serviceContext = SPServiceContext.GetContext(SPContext.Current.Site);   SearchServiceApplicationProxy searchApplicationProxy = serviceContext.GetDefaultProxy(typeof(SearchServiceApplicationProxy)) as SearchServiceApplicationProxy;   Guid … Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Custom_AddDocLibMenuItems

SharePoint Short #19 When implementing your own Custom_AddDocLibMenuItems, which allows you to add custom menu items to the ECB of SharePoint items, remember to check for other implementations of this method before your own version. For example: function YourImplementationOf_AddDocLibMenuItems(m, ctx, … Continue reading

Posted in SharePoint, SharePoint Shorts | Tagged , | 4 Comments

Field Order for External Content Type

Working with external content types isn’t as straight forward as it should be, especially within a Visual Studio project. Take trying to define the display order of your columns as an example. You define your task entity by adding your … Continue reading

Posted in SharePoint | Tagged , , , | Leave a comment

Show Web Template

Carrying on from my previous post Hide Web Template, this post demonstrates how to show a web template in the New Site dialog for a specific web using a PowerShell script: function Add-SPWebTemplate { [CmdletBinding()] param( [parameter(Position=1,Mandatory=$true)][Microsoft.SharePoint.SPWeb]$web ) process { … Continue reading

Posted in SharePoint | Tagged , | Leave a comment