Skip to content

Instantly share code, notes, and snippets.

Tim tim-bellette

Block or report user

Report or block tim-bellette

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tim-bellette
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) {
calendars.push(d[k]);
}
@tim-bellette
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
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.