• Subject: Re: Non-default calendar syntax
  • Author: Julian Jordan
  • Date: 01 Dec 2010
  • References: 1
On 30/11/2010 15:37, Julian Jordan wrote:
> Hi
>
> I've just been upgraded to 64-bit Windows 7 & Outlook 2010
>
> Before this upgrade, I had running a slightly tweaked version of this
> script:
>
> http://www.ryanwatkins.net/software/outlook2ical.js
>
> Which worked very well for periodically exporting a group shared
> calendar to iCal
>
> The calendar I want to export shows up in Outlook 2010 under "My
> Calendars" as "IT-Staff-Leave" by virtue of an "additional mailbox"
> communal user set up for the whole IT dept to share.
>
> I know the crucial line in the code is:
> var calendar =
> ol.getnamespace("mapi").getdefaultfolder(olFolderCalendar).items;
>
> Which exports my default calendar just fine, but I can't seem to tweak
> it to export the It-Staff-Leave calendar as it used to.
>
> Thanks for any pointers,
>
> Julian

Well I solved it - first I used:

var calendar = ol.getnamespace("mapi").pickfolder;

Which revealed that the structure "really" going on is quite different
to the simplified view which outlook shows you. My final syntax was
pretty standard:

var calendar = ol.getnamespace("mapi").Folders("Containing
Folder").Folders("Name of Destination Calendar").items;

Hope this helps somebody

Julian
30 Nov 2010Non-default calendar syntax.Julian Jordan
01 Dec 2010\ Re: Non-default calendar syntax.Julian Jordan
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)