How to send meeting request through sharepoint
-
Thursday, March 20, 2008 11:33 AMHi,
how can i send an appointment item for meeting through sharepoint. I tried using Outlook object model which works fine in asp.net but when the same code is used in sharepoint site then it throws me an error.
Microsoft.Office.Interop.Outlook.AppointmentItem mtg = (Microsoft.Office.Interop.Outlook.AppointmentItem)outLookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olAppointmentItem);
mtg.MeetingStatus = Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting;
mtg.Location = "Meeting Room";
mtg.RequiredAttendees = "xyz@xyz.com";
mtg.Subject = "SharePoint meeting";
mtg.Start = DateTime.Now.AddMinutes(10);
mtg.Duration = 60;
mtg.Body = "This is just a test meeting from C#";
mtg.ReminderMinutesBeforeStart = 60;
mtg.ReminderSet = true;
mtg.Send();
As soon as the send method is excuted we get ERROR: "Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))"
any help is highly appreciated.
Regards,
Nichie.
All Replies
-
Saturday, April 05, 2008 9:41 PMSharePoint doesn't support MeetingItems. So any code that makes the appointment a meeting e.g. mtg.MeetingStatus = Microsoft.Office.Interop.Outlook.OlMeetingStatus.olMeeting may be causing the problem.
-
Sunday, April 06, 2008 5:52 PM
Moving to the Programming forum that deals with Programming questions including questions on the object model.
Please post directly in future and not to general.
-
Sunday, April 06, 2008 8:02 PM
I wrote a blogpost about this subject. I am using the Outlook object model without problems in it to send out meeting requests. I hope this can help you out? -
Monday, March 22, 2010 10:38 AM
Hi,
Have a look to this demo code i wrote.
DateTime d1 =new DateTime(2010,3,22,18,00,00);
DateTime d2 = new DateTime(2010, 3, 22, 18, 30, 00);
Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
AppointmentItem item = (Microsoft.Office.Interop.Outlook.AppointmentItem)app.CreateItem(OlItemType.olAppointmentItem);
item.Subject = "Configured Programmatically";
item.Location = "India";
item.Start = d1;
item.End = d2;
item.AllDayEvent = false;
item.Body = "Meeting";
item.ReminderSet = true;
item.ReminderMinutesBeforeStart = 15;
item.Save(); // Use this statement to save meeting request to outlook
Regards,
Milan c.
-
Monday, March 22, 2010 10:40 AM
you can always create any type of calender requests without using Outlook, once you create it add it in your workflow by creating custom code step in workflow using VS.
please go through this post http://kobikobi.wordpress.com/2009/01/03/sending-meeting-requests-to-outlook-via-aspnet-mail-message/
in above post he has explained how to create and send the appoinments.
and some more
http://stackoverflow.com/questions/461889/sending-outlook-meeting-requests-without-outlook,
http://207.46.16.251/en-us/library/bb655909.aspx
http://forums.asp.net/p/1036630/1434024.aspx#1434024
Regards, Vikas Patel. -
Monday, March 22, 2010 12:01 PM
Nichie
I already implemented this iCal application with sharepoint succesfully. It has one limitation i.e. ysing iCal appointment with Outlook Client it works very nicely, but when you open iCal appointment with Web Based Outlook, it wont allow you to do anything, secondly some the comapny are blocked iCal file type to avoid any kind trojan/melaware/.virus attack.
URL suggested by Vikas has lots of sample code, let me know if you still need any kind of help
Ashish Kanoongo, MCP, MCSD, MCTS -
Friday, June 25, 2010 1:47 PM
I am facing same problem ????
Any Help Please
Manesh -
Tuesday, August 24, 2010 12:52 AM
you can always create any type of calender requests without using Outlook, once you create it add it in your workflow by creating custom codec step in workflow using VS.
please go through this post http://kobikobi.wordpress.com/2009/01/03/sending-meeting-requests-t-outlook-via-aspnet-mail-message/
in above post he has explained how to create and send the appoinments.
and some more
http://stackoverflow.com/questions/461889/sending-outlook-meeting-requests-without-outlook,
http://207.46.16.251/en-us/library/bb655909.aspx
http://forums.asp.net/p/1036630/1434024.aspx#1434024
Regards, Vikas Patel.
Is the problem with the my network here? The link cannot be opened. -
Wednesday, August 25, 2010 3:34 AM
I've been looking for a way to accomplish the same thing. I had an idea that it could be done using a workflow. I was monkeying around with the "send an email" action in SPD 2010 and found that if I go to the action and click properties, I can edt the properties of the email directly. Here's what the Body tag parameter had in it:
It makes me think that if we could get the html formatting for a meeting request we could be able to have the workflow dynamically create and send requests whenever an appointment is added or changed. I'm not sure where to get that formatting though, so this is just a direction to explore for the moment.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD><META NAME="Generator" CONTENT="MS Exchange Server version 08.01.0240.003"><TITLE></TITLE></HEAD><BODY><!-- Converted from text/rtf format --><P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">Sending message</FONT></SPAN><BR><SPAN LANG="en-us"><FONT FACE="Arial">[%CurrentItem:Title%]</FONT></SPAN></P></BODY></HTML>

