0 comments on “Starting a SharePoint 2013 workflow programmatically using the JavaScript Client Object Model”

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…

Advertisements
0 comments on “SharePoint list and library event properties”

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. 

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. 

0 comments on “Accessing the SharePoint Secure Store through code”

Accessing the SharePoint Secure Store through code

The Secure Store Service in SharePoint 2010 is a shared service that provides a secure storage and mapping of credentials such as account names and passwords which can be used for accessing external systems.

In this article, I’ll demonstrate how to setup a new Target Application in SharePoint 2010 as well as demonstrate how to access this information through code. We will use the Secure Store to store information needed to access an external database which will be used by..