Author Archives: Stu

Security Trim SPNavigationNode

SharePoint Short #3 To have the URL specified by a SPNavigationNode security trimmed, make sure you do not specify the isExternal constructor parameter. Obviously, specifying true for this parameter would not apply security trimming against the link, as you would … Continue reading

Posted in SharePoint Shorts | Tagged , | Leave a comment

Start SharePoint Timer Job Script

I’ve written a PowerShell script that starts a SharePoint timer job, which is useful if you do a lot of work that relies on certain timers firing and don’t want to have to keep going into the Central Administration site … Continue reading

Posted in SharePoint | Tagged , | 2 Comments

Save Conflict

SharePoint Short #2 In event receivers such as ListAdded, FieldAdded or ItemAdded, if you’re updating the newly created item you may encounter the following error: “Save Conflict” These events are asynchronous by default, so changing them to synchronous will ensure … Continue reading

Posted in SharePoint Shorts | Tagged , | Leave a comment

Set Status Bar Colour

SharePoint Short #1 To set the colour of a SharePoint 2010 status message, it’s important to specify it in lower-case and not start with an upper-case letter. The MSDN page for setStatusPriColor, found here, shows the colour values starting with … Continue reading

Posted in SharePoint Shorts | Tagged , | Leave a comment

Get ListTemplate and Create New List in PowerShell

A PowerShell related post today: To create a list or library in SharePoint, you can do the following: $web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name")$web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name") Now, say you … Continue reading

Posted in SharePoint | Tagged , | 1 Comment