Skip to content

Instantly share code, notes, and snippets.


Tim tim-bellette

View GitHub Profile
tim-bellette / CalendarList.js
Created Dec 7, 2017
Get an array of SharePoint 2010 calendar instances on the current page.
View CalendarList.js
var calendars = [];
var d = SP.UI.ApplicationPages.CalendarInstanceRepository.$o_0;
for (var k in d) {
tim-bellette / RefreshCalendar.html
Last active Dec 7, 2017
Simple script to automatically refresh a SharePoint 2010 calendar's items every 10 seconds
View RefreshCalendar.html
<script type="text/javascript">
setInterval(function() {
try {
var calendar = SP.UI.ApplicationPages.CalendarInstanceRepository.firstInstance(); // Get the first calendar instance on the page
if (calendar) {
calendar.refreshItems(); // async refresh of calendar items
catch (e) {
// ignore
tim-bellette / Program.cs
Last active Dec 6, 2017
Simple console application to output a hierarchy of Outlook folders, with their Entry ID, using NetOffice.
View Program.cs
using System;
namespace OutlookFolderIdGrabber
public class Program
public static void Main(string[] args)
using (var application = new NetOffice.OutlookApi.Application())
You can’t perform that action at this time.