Office 365 Dev Tip - Office 365 Patterns and Practices - Notes from the field

Office 365 Dev Tip - Office 365 Patterns and Practices - Notes from the field

Here’s another post in the Office 365 dev tip series. This time I’ll mention the Office 365 PnP core library, which is a really great library which you can (and in my opinion should) use for your projects where suitable. This is not a how-to post about implementation but rather general tips that I’ve heard people discuss/ask countless of times already. Hopefully you’ll find it helpful :-) Samples, Scenarios, Solutions and Guidance In the GitHub repository there’s a LOT of samples and scenarios where you can learn a LOT about how to properly work…

Read More

Office 365 Dev Tip - Getting Add-in (App) Information for Add-ins (Apps) on a specific Web

Office 365 Dev Tip - Getting Add-in (App) Information for Add-ins (Apps) on a specific Web

Here’s yet another quick tip for the CSOM developer in SharePoint online. I came across a discussion about retrieving information about which apps were used/installed on a certain site. There’s a lot of people who want a simple indicator, notification/alert or list when new apps are deployed or removed globally and don’t want to complicate things. Well, here’s an easy way to find out exactly which apps are installed on a specific web. Oh an by the way it’s old news now, but Apps are called Add-ins. I’ll try to refer to…

Read More

Office 365 Dev Tip - Getting all Apps from your Tenant App Catalog using the Office 365 (CSOM) API

Office 365 Dev Tip - Getting all Apps from your Tenant App Catalog using the Office 365 (CSOM) API

Here’s another quick-tip when working with Office 365 dev / SharePoint Online CSOM. A lot of people have asked me by e-mail, comments and twitter on how to get information about their apps in their tenants programmatically. With that, I thought it’d be fun to post another code snippet with details on how to retrieve information about your Apps in your SharePoint Online tenant. Pre-requisites In order to run the code in the snippet you should already have: Installed the SharePoint Online CSOM NuGet into your Visual Studio project Installed the Office 365 Patterns and Practices NuGet into your…

Read More

Office 365 Dev Tip - Retrieve all tenant-level WebTemplates in your Office 365 tenant using CSOM

Office 365 Dev Tip - Retrieve all tenant-level WebTemplates in your Office 365 tenant using CSOM

Here’s another simple and quick tip for Office 365 dev (with SharePoint Online). In this post I’ll simply show how you can easily get the Tenant-level Web Templates and information about then. In recent weeks, this topic has been cause of many discussions I’ve had with people who have been asking about Office 365 and CSOM. Since I think it’ll be easier to just show once here instead of replying uniquely to those e-mails, let’s just get to the code and see how you can do this. Pre-requisites In order to run the code in…

Read More

Office 365 Dev Tip - Get Subsite Count per Site Collection with the Office 365 (CSOM) API

Office 365 Dev Tip - Get Subsite Count per Site Collection with the Office 365 (CSOM) API

Here’s a quick tip for when working with the .NET managed CSOM for Office 365 dev (with SharePoint Online). In a few cases and projects I’ve been involved with, I see code that iterates through each site collection and then iterates through each Web recursively in order to return a count of total subsites in the Site Collection. Well, with the Client Site Object Model (CSOM) it is possible to fetch only properties for a site in your tenant. One of those properties is called “WebsCount“. Obviously this is only one of the properties and there’s a…

Read More

Office 365 API Sandbox - Learn how to use the API's with your own tenant data!

Office 365 API Sandbox - Learn how to use the API's with your own tenant data!

Post updated 2015-02-25 to include support for C# Up until recently I’ve been using a lot of browser extensions and client-side tools for running test-queries and sample-code toward real data or developer-data in our tenants using the REST API in Office 365. While tools like Advanced REST for Chrome are awesome, Microsoft has recently released the “API Sandbox” for Office 365 which essentially gives you a way to directly write code in the browser and test it – either using sample data or using your real tenant. Getting started with the API Sandbox First, you’ll head on to https:…

Read More

Getting Started with building Azure WebJobs ("Timer Jobs") for your Office 365 sites

Getting Started with building Azure WebJobs ("Timer Jobs") for your Office 365 sites

One of my new Office 365 projects is all about migrating farm-solutions to a more Office 365 compliant format. This includes converting a lot of functionality to SharePoint Apps and other cloud-friendly formats.  One of the things we’ve got plenty of is Timer Jobs. In this post I’ll talk about how you can build an Azure WebJob to act as a scheduled job for your Office 365 (or on-prem, should you like) SharePoint installation. With Office 365, if you’re running SharePoint, you’ll need to re-think the way you run the things that used to be timer…

Read More

Getting started with Office 365 development - Part 4 - From development to production: Publish your app to Windows Azure Web Sites

Getting started with Office 365 development - Part 4 - From development to production: Publish your app to Windows Azure Web Sites

This article is part of a series about “Getting started with Office 365 development”. Part 1 – Setting up your environment Part 2 – Communicate with the Exchange REST API Part 3 – Building a sample Web Forms application that integrated with Office 365 Part 4 – From development to production: Publish your app to Windows Azure Web Sites In this article we’ll take a look at how we can publish our application for public access. We will utilize Windows Azure Web Sites and will see how we can do this in a few simple steps in this article. The benefit of publishing…

Read More