Starting a SharePoint 2013 workflow programmatically using the JavaScript Client Object Model

The following code snippet shows how to start a SharePoint 2013 workflow using JavaScript. SharePoint 2013 workflows are substantially different than previous SharePoint 2010 workflows. You can read about the SharePoint 2013 architecture here. The code is actually very similar to the C# code we would use to start the workflow. Here we are using […]

Read more "Starting a SharePoint 2013 workflow programmatically using the JavaScript Client Object Model"

SharePoint list and library event properties

Every time I work with event receivers in SharePoint, I keep going back to these two tables as a reference. So I thought I would post it here to make it easier for me (and you) to find.  

When trying to retrieve values from a list item in an event receiver, you sometimes need to get the values from the ListItem, sometimes the AfterProperties, sometimes the BeforeProperties. These tables show what each property should return for each type of event. 

Read more "SharePoint list and library event properties"

Reorder SharePoint list columns to match it’s parent content type

I ran into an issue today. I have a site Content Type that defines several list fields and I have a specific order for those fields to be displayed. Today I added a new site column to this content type and I updated the order of my fields in the content type as usual. However, the lists that use this content type became all out of whack in regards to the order of the fields. I tried to update the order in the Content Type again and push down the changes, but never had any luck.

So, being a developer, I wrote up a simple console app that will iterate through my sites (about 40 webs) and find my particular list and content type and reset the order of the fields to match the parent content type. 

Read more "Reorder SharePoint list columns to match it’s parent content type"