Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Adding Appointments to other users outlook calendar

by DeliriumNZ (Novice)
on May 01, 2009 at 06:08 UTC ( [id://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 (Archbishop) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found