The following code snippet shows how to create a SharePoint 2013 workflow using C#. While the code itself is pretty self explanatory, here are some hints:Read more "Starting a SharePoint 2013 workflow programmatically using C#"
I was working on a project today and one of the requirements was, using a Timer Job, run an Export of an existing site collection and then Import it as a new site collection. The code to do this was relatively straight forward. But then when testing I found that the site collection being copied […]Read more "Programmatically create a site collection with the 2010 Exerience"
Ever have a need to open a page or external URL from your SharePoint site within a modal window? With the dialog framework provided by SharePoint, it is pretty easy to do so.
Here is an example:Read more "Open a page in a SharePoint modal window"
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"
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"
SharePoint contains list and libraries which allows you to store and organize your content. At first glance, this content seems fairly static, it just sits there until someone makes changes to it. What if you want your content to trigger actions that take place in your system? Here are a few examples:Read more "SharePoint Event Receivers"