SharePoint Development

Retrieving values of Managed Properties in SharePoint 2013 Search REST API

Having just spent the best part of a day trying to figure out how to query values of Managed Properties within a SharePoint 2013 App using the new Search REST API, I thought I would share with you how it’s done. There is a real lack of decent MSDN documentation…

SharePoint 2013–retrieving the lookup value of User fields using the REST API

I’ve been stuck on an issue for a while trying to retrieve the value of a User field using the SharePoint 2013 REST API. The MSDN documentation is less than helpful and offers this advice for retrieving the value of lookup fields using REST – In addition, you can specify…

SharePoint 2013 ‘SharePoint Hosted’ App Permissions

It turns out this SharePoint 2013 dev malarkey is actually pretty good! I’m working on a SharePoint hosted app at the moment which queries the User Profile Service using SP.UserProfiles.js. It’s nice to see that we have a decent javascript API to use now when querying user profiles. Anyhow my…

Failed to install App for SharePoint error when provisioning Lookup columns

I came across this error today while trying to provision some lookup columns as part of a SharePoint 2013 App I was creating. It seems in 2013 you can provision lookup columns declaratively in the Elements XML – this is great news! In 2010 you had to do a sort…

Content Type SPI bug in SharePoint Sandbox Solutions

I seem to have come across what I believe to be a bug when with Content Types in SharePoint 2010 Sandbox Solutions. I believe this bug to be caused by Visual Studio but I haven’t been able to confirm this yet. The issue arises when you provision a Content Type…

Synchronous Event Receivers

SharePoint is a big (massive!) product, there are features and enhancements in SP2010 which I haven’t even used yet – mostly because I haven’t needed to. One of these is the ability to run after events synchronously (ItemAdded, ListAdded and WebProvisioned). Previously all after events were executed asynchronously and on…

Strange goings on with the format of dates in SharePoint Calculated Columns

I came across a weird issue this morning whilst debugging a Web Part. I had a list that stored a date in one column and a Calculated Column that returned a date after applying a formula. The regional settings of the site were set to English (Australia) – see screenshot…

The User Information List – a really valuable resource!

The SharePoint ‘User Information List’ is an often ignored hidden SharePoint list. When a user is added to a SharePoint site their details are copied into the list. It’s really easy to forget its there and it can be a valuable resource when developing in the sandbox. The other day…

Overwriting Fields/Content Types in Elements.xml

I only spotted this the other day – the Elements.xml contains an ‘Overwrite’ attribute. I was provisioning a custom Content Type and some Site Columns but when activating the feature it failed. The error message was that the Content Type already existed in the site – see screenshot below.  …