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