Export SharePoint Event To Outlook

By Alon Havivi

Exporting events from SharePoint to Outlook

Here is a small web part that render a drop down list with calendar events and a button to export the selected event to outlook


SPList list = SPContext.Current.Web.Lists["Calendar"];
SPListItem item = list.GetItemById(Convert.ToInt32(ddlEvents.SelectedValue));
string location = item["Location"] as string;
string subject = item.Title;
string description = item["Description"] as string;
DateTime beginDate = (DateTime)item["Start Time"];
string beginDateString = beginDate.ToUniversalTime().ToString("yyyyMMdd\\THHmmss\\Z");
DateTime endDate = (DateTime)item["End Time"];
string endDateString = endDate.ToUniversalTime().ToString("yyyyMMdd\\THHmmss\\Z");

string[] contents = {"BEGIN:VCALENDAR",
"PRODID:-//My company//My product//EN",
"BEGIN:VEVENT",
"DTSTART:" + beginDateString,
"DTEND:" + endDateString,
"LOCATION:" + location,
"DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" + description,
"SUMMARY:" + subject, "PRIORITY:3",
"END:VEVENT",
"END:VCALENDAR" };

HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ContentType = "text/calendar";
response.AddHeader("Content-disposition", "attachment;filename=event" + ddlEvents.SelectedValue + ".ics");
response.Write(string.Join("\r\n", contents));
response.Write(contents);
response.Flush();



Download the webpart

Export SharePoint Event To Outlook  (1073 Views)
Create New Account
event handlers what is the difference between event handlers and workflows The main differences between SharePoint event handlers and SharePoint workflows are: Initiation SharePoint event handlers are automatically initiated, while SharePoint workflows can be initiated either automatically or manually. Response A SharePoint event handler always responds to an event that has taken or
content type. Then, I created a column "external data" in Sharepoint that I linked to my content type. When I want 13 / 2011 00:08:30.31 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http 13 / 2011 00:08:30.31 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Logging Correlation Data xmnv Medium Name = Request (GET:http 13 / 2011 00:08:30.32 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Logging Correlation Data xmnv Medium Site = / 9694064f-e307-4c5d 13 / 2011 00:08:30.35 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http 13 / 2011 00:08:30.45 wsstracing.exe (0x06A0) 0x17A0 SharePoint Foundation Unified Logging Service b9wt High Log retention limit reached 13 / 2011 00:08:30.45 wsstracing.exe (0x06A0) 0x17A0 SharePoint Foundation Tracing Controller Service 8096 Information Usage log retention limit 13 / 2011 00:08:30.57 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http 13 / 2011 00:08:30.57 w3wp.exe (0x1D9C) 0x1038 SharePoint Foundation Logging Correlation Data xmnv Medium Name = Request (GET:http 13 / 2011 00:08:30.57 w3wp.exe (0x1D9C) 0x05C4 SharePoint Foundation General af71 Medium HTTP Request method: GET 1ab46865-e63e
net. . . . . . . HI try this $ ( document ). ready ( function () { $ ( "#txtboxToFilter" ). keydown ( function ( event ) { / / Allow only backspace and delete if ( event . keyCode = = 46 | | event . keyCode = = 8 ) { / / let it happen, don't do anything } else that it is a number and stop the keypress if ( event . keyCode < 48 | | event . keyCode > 57 ) { event . preventDefault (); } } }); }); refer the links also http: / / stackoverflow.com / questions / 995183 here is the code. . $(document).ready( function (){ $( "#txtNumbers" ).keydown( function (event) { if (event.shiftKey) event.preventDefault(); if (event.keyCode = = 46 | | event.keyCode = = 8) { } else { if (event.keyCode < 95
Export SharePoint event to Outlook Calendar - Question for Alon Havivi Hi There, How I am referring to: http: / / www.eggheadcafe.com / sample-code / SharePoint / 017042ae-f0f6-47bb-be56-6c8296fe78b7 / export-sharepoint-event-to-outlook.aspx ) I am in need of having a The end user will select a date for a training event (from a form created within InfoPath) and that event should be automatically populated within the calendar of the user as per the created SharePoint workflow). Thanks, Jason You need to create a Custom Web the response. I inserted the "Content Editor" webpart onto my SharePoint page and I copied and pasted the following code as response.ContentType = "text / calendar"; response.AddHeader("Content-disposition", "attachment;filename = event" + ddlEvents.SelectedValue + ".ics"); response.Write(string.Join(" \ r \ n", contents
sharepoint sharepoint Hi, Microsoft SharePoint 2010 makes it easier for people to work together. Using SharePoint 2010, your people can set up Web sites to share these links having good tutorial about share point 2010 http: / / sharepoint.microsoft.com / en-us / product / capabilities / Pages / default.aspx http: / / www.cmswire.com / cms / enterprise-20 / what-is-sharepoint-2010-vision-and-reality-007513.php http: / / www.sharepointhq.com resources / sharepoint-2010-introduction As an implementation for SharePoint, Microsoft Office SharePoint Server (MOSS 2007) is a truly revolutionary collaboration tool. Just design process. SharePointBoost offers many rich web parts to make SharePoint functionality more powerful. You will find it not so hard
SharePoint Server Event Error 5699 I need help with the following error Event Type: Error Event Source: Office SharePoint Server Event Category: Business Data Event ID: 5699 Date: 13 / 01 / 2010 Time: 02:59:51
Export SharePoint Event To Outlook Exporting events from SharePoint to Outlook Here is a small web part that render with calendar events and a button to export the selected event to outlook SPList list = SPContext. Current .Web.Lists[ "Calendar" ]; SPListItem response . ContentType = "text / calendar" ; response . AddHeader ( "Content-disposition" , "attachment;filename = event" + ddlEvents. SelectedValue + ".ics" ); response . Write ( string . Join ( " \ r \ n" , contents )); response . Write ( contents ); response . Flush (); Download the webpart Export SharePoint Event To Outlook ( 920 Views ) View Alon Havivi's FAQs Create New Account keywords: SharePoint Event, Outlook, Export, Save , Sync" list, item description: Exporting events from SharePoint to Outlook
Event Error 5699 Event Type: Error Event Source: Office SharePoint Server Event Category: Business Data Event ID: 5699 Date: 13 / 01 / 2010 Time: 02:59:51