Thanks for your reply, I appreciate the positive comments which have been posted.
It was in fact the node you refer to, 110503 which got me started.
The issue is that in our office we use Outlook 2000 and Exchange 2000 and we mainly have laptops.
We also have internet dial up accounts for external e-mails and working offsite.
This means that in Outlook, there are two sets of all the standard folders, inbox, outbox, calendar, drafts etc etc.
One set of folders is under an Outlook Today - Personal Folder, and therefore in a .pst file,
this is the default for all calendar entries. The others are under the Exchange mailbox.
I am trying to build a script which will copy all the calendar entries from the .pst file and place them into the Exchange Mailbox Calendar folder.
I have used the script posted in the node referenced, and it is working perfectly. So I know that I can extract the entries OK.
I am stuck on how to "reverse" the script so that I can write the entires into the Exchange Mailbox Calendar.
whilst this bit of code in the routine specifies the default outlook calendar folder, how can I specify the Exchange folder?
my $namespace = $outlook->GetNameSpace("MAPI") or die "can't open MAPI + namespace\n"; my $recurringitems = $namespace->GetDefaultFolder(olFolderCalendar)->{ +Items}; my $calitems = $namespace->GetDefaultFolder(olFolderCalendar)->{Items} +;
I have tried looking in the Outlook Object Model, but it just didn't make sense to me.

Any help, or nudges in the right direction would be most helpful!

In reply to Re: Re: Creating entries in an Outlook Calendar by Anonymous Monk
in thread Creating entries in an Outlook Calendar by lumina

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.