Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Adding Appointments to other users outlook calendar

by DeliriumNZ (Novice)
on May 01, 2009 at 06:08 UTC ( #761222=perlquestion: print w/replies, xml ) Need Help??

DeliriumNZ has asked for the wisdom of the Perl Monks concerning the following question:

Hi Im new so please bare with me. I have been given a project at work to create a perl script that sorts out incoming mail to a particular mailbox and then extracts data from those emails and then uses that data to create appointments in the calendar. Now I have managed to create this successfully but the problem I have is the calendar is another persons calendar, where i can only get it going for doing it on my calendar. so how do i add an appointment to another persons calendar, is pretty much what I need. It is driving me nuts. I have looked all over the internet and cant find anything.

Here is a sample of the code I am using for my calendar:
if(($start=index($subject, "Telecom Service Event", $start)) != -1) { ($SubjectRefuge, $Ref) = split(/Ref. /, $subject); my $newoutlook = Win32::OLE->new('Outlook.Application') or die + "Error!\n"; my $newappt = $newoutlook->CreateItem(olAppointmentItem); $newappt->{Subject} = "Telecom Outage Ref: $Ref"; $newappt->{Start} = "$Date $NZStd"; $newappt->{Duration} = 1 ; #1 minute $newappt->{Body} = "$body"; $newappt->{ReminderMinutesBeforeStart} = 1; $newappt->{BusyStatus} = olFree; $newappt->Save(); }

Replies are listed 'Best First'.
Re: Adding Appointments to other users outlook calendar
by Perlbotics (Bishop) on May 01, 2009 at 18:57 UTC

    Hi, I'm just guessing, but you might have troubles accessing other peoples Outlook processes because of access restrictions (other user and/or other computer) - which is annoying but good.

    Outlook uses normal eMails to invite to appointments. Maybe sending invitations to the people in question is an alternative unless there is a requirement for a silent calendar update? However, depending on the number of invitations it could be annoying to receive 20 or so invitations at once. This link might be a starter: Exchange Compatible iCAL Invitations

    Another option might be to create and share a calendar specially provided for event-announcements (e.g. Share your calendar information)...

    Directly accessing the Exchange server would probably be the cleanest solution, but that's beyond my experience.
    Maybe another Monk knows....?

      Maybe you could use Mail::Outlook as a springboard to get the functionality you wish.

      "Strictly speaking, there are no enlightened people, there is only enlightened activity." -- Shunryu Suzuki

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://761222]
Approved by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-25 01:25 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (84 votes). Check out past polls.