A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem adding attendees to existing appointment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 17th 06, 12:23 PM posted to microsoft.public.outlook.program_addins
Lars
external usenet poster
 
Posts: 2
Default Problem adding attendees to existing appointment

Hi,

I have a problem adding new attendees to an existing appointment using
outlook object model. Pointers to helpful information would be much
appreciated.


I have an existing appointment in Outlook 2007 (beta 2), which might
have any number of attendees. Now I want to add new attendees to the
appointment. The problem is that the new attendees don't receive their
invitation mails (MeetingItems). The new attendees do show up in the
organizer's calendar (that is: I can see the new attendees that I have
added). But the new attendees have no way of accepting/declining the
meeting.

First i get the Appointment object (called appointment below). Then the
c# code below is run to add new guys to the appointment (error checking
etc is left out for brevity).
-------------
//Add a new participant
Outlook.Recipient participant =
appointment.Recipients.Add(newParticipantName);
participant.Type = (int) Outlook.OlMeetingRecipientType.olOptional;
appointment.Recipients.ResolveAll()

//Send out meeting invitation:
//appointment.Save();
appointment.Send();
--------------

Regards
Lars

Ads
  #2  
Old October 17th 06, 04:56 PM posted to microsoft.public.outlook.program_addins
Lars
external usenet poster
 
Posts: 2
Default Problem adding attendees to existing appointment

Lars wrote:

I have an existing appointment in Outlook 2007 (beta 2), which might
have any number of attendees. Now I want to add new attendees to the
appointment. The problem is that the new attendees don't receive their
invitation mails (MeetingItems). The new attendees do show up in the
organizer's calendar (that is: I can see the new attendees that I have
added). But the new attendees have no way of accepting/declining the
meeting.


After a lot of trial and error I think I found it out on my own: the
trick is to re-read the calendar folder after you have saved the
updated appointment item. Then when you have read the updated
appointment item back from outlook/exhange you can do
appointment.Send(), and it is sent to the relevant recipients.

Lars

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding and Deleting attendees donna Outlook - Calandaring 2 October 2nd 06 08:16 PM
Can I change meeting organizer on existing recurring appointment? Deb Cotter Outlook - Calandaring 0 July 19th 06 04:41 PM
How to invite NEW attendees to an appointment? MTT Outlook - Calandaring 0 June 20th 06 08:45 PM
Adding a Member (existing in GAL) to a Public Distribution List in K.N.Ganesh. Outlook and VBA 1 May 23rd 06 08:25 PM
Meeting appointment missing attendees ?! groovin.penguin Outlook - Calandaring 0 March 29th 06 11:43 PM


All times are GMT +1. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.