Kirk Evans Blog

.NET From a Markup Perspective

Setting a SharePoint Person or Group Field Value with CSOM

I recently was asked a question about setting a Person or Group field value in a list using CSOM.  This post shows how to programmatically set a user or group field value using CSOM. Background A developer wants to programmatically add users as members to a Community site in SharePoint 2013.  Once the users have… Read more

What Every Developer Needs to Know About SharePoint Apps, CSOM, and Anonymous Publishing Sites

This post will show what works and what doesn’t with CSOM and REST in a SharePoint 2013 publishing site that permits anonymous access.  More importantly, we show what you should and should not do… and why. Overview I frequently see questions about using SharePoint apps with “public-facing web sites” where the web content is available… Read more

Enabling the Developer Site Collection Feature in SharePoint Online

I have been doing a bit of work updating some of our content for apps lately, and I found a couple areas where I needed to enable the developer site collection feature for a new site collection.  You might want to enable the developer site collection feature when you need to side-load an app and… Read more

Introducing SharePointContext for Provider-Hosted SharePoint Apps!

One of the more frustrating parts of building provider-hosted apps for SharePoint 2013 was that you needed to choose ahead of time if you were targeting a low-trust app or a high-trust app and use the appropriate methods in TokenHelper.cs.  Not only that, but figuring out how to use the app-only policy was less than… Read more

Moving Path Based to Host Named Site Collections

This post illustrates a problem with detaching content databases that contain site collections restored from path-based site collections to host named site collections. Background The recommendation for SharePoint 2013 is to use a single web application and leverage host named site collections.  In a previous post, I wrote about What Every SharePoint Admin Needs to… Read more

Creating a Fiddler Extension for SharePoint 2013 App Tokens

This post will show how to create a Fiddler extension to inspect SharePoint 2013 context and access tokens.   [Update 11/21/2013: Andrew Connell was nice enough to post this project to GitHub to allow the community to make contributions to the project. Visit his blog for more information on contributing!] Overview In a previous post,… Read more

ALM for SharePoint Apps – Understanding Provider Hosted App Publishing

This post shows how to create a publishing profile for provider-hosted apps and use them as part of the build process. Overview This is part 4 in a series on ALM for SharePoint 2013 apps. Part 1 – ALM for SharePoint Apps: Configuring a TFS Build Server with Team Foundation Service Part 2 – ALM… Read more

ALM for SharePoint Apps: Customizing the Build Process with a Custom Workflow Activity

This post shows how to create a custom customize the build process for provider-hosted apps with a custom workflow activity that will update the appmanifest.xml file for a provider-hosted app to point to different web servers. Overview This is part 3 in a series on ALM for SharePoint Apps. Part 1 – ALM for SharePoint… Read more

ALM for SharePoint Apps: Implementing Continuous Integration

This post shows how to implement continuous integration for a provider-hosted app in SharePoint 2013.  Overview This is Part 2 of a series. Part 1 – ALM for SharePoint Apps: Configuring a TFS Build Server with Team Foundation Service Part 2 – ALM for SharePoint Apps: Implementing Continuous Integration (this post) Part 3 – ALM… Read more

ALM for SharePoint Apps: Configuring a TFS Build Server with Team Foundation Service

This post shows how to configure a TFS Team Build 2012 server with Team Foundation Service in the cloud, and how to create a basic build of a SharePoint 2013 provider hosted app. Overview This is part 1 of a series on ALM for SharePoint Apps. Part 1 – ALM for SharePoint Apps: Configuring a… Read more