Does SharePoint 2010 support the iCalendar format?

大兔子大兔子 提交于 2019-12-03 12:28:44

SharePoint does support iCalanders. I am currently using on an events list so people can save to their outlook.

You can download the .ics based on the url like so:

http://yoursite/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=%7BListID%7D&CacheControl=1&ID=1&Using=event.ics

Replacing yoursite with your host name, ListID with the ID of your list with the events and the ID=1 with whatever list item number you want.

In SharePoint designer you can implement into the page as a hyperlink like the following example:

http://yoursite/Marketing/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=%7BA742AAC4%2D2654%2D4E64%2D9280%2D7813D2A343A2%7D&CacheControl=1&ID={$thisNode/@ID}&Using=event.ics

I'm not sure about a direct web service to retrieve the iCal if you want to use pragmatically but i'm sure you can just use this URL and a stream reader to save or manipulate.

You can use the "RSS Feed" option in the "Calendar Tools" section to help find the correct url. Each item in the RSS feed will have an event.ics generated by the owssvr.dll, which you can then convert to the format described by kravitz88 to get an ics for the whole calendar.

If your original URL was something like this:

http://SHAREPOINT.local/siateam/Lists/Calendar/calendar.aspx

Then inside the RSS item links should look something like this:

http://SHAREPOINT.local/siateam/_vti_bin/owssvr.dll?CS=65001&Cmd=Display&CacheControl=1&List={df83eb1b-0403-42ec-8198-ec523bf1acc1}&ID=254&Using=%2Fsiateam%2FLists%2FCalendar/event.ics

Again, maybe not a very direct way of exporting to iCalendar, but this may help to get there anyway. I found on Sharepoint 2007 (and I am not sure whether 2010 has this feature, too, but it's quite possible), that you can create your own views of a calendar by using the "View" button and menu:

  1. Create View
  2. Datasheet View
  3. Give the view a name in the "View Name" field, and select all the fields you want to export in the list below.
  4. Once you have the new datasheet view, this should show all events in the entire calendar in one single (scrollable) table.
  5. Select everything (Ctrl-A), and copy and paste...

I found that MS Excel 2013 for some reason doesn't want to paste the contents of the clipboard thus obtained, but LibreOffice Calc does it just fine without any complaints. The specific calendar I exported in that way had some 1,300 events spread out over five years.

  1. Convert the table thus obtained to iCalendar format... (I haven't done that yet, but that should be the easy part; may have to read the standard: http://tools.ietf.org/html/rfc5545 )

Single Calendar Event in iCalendar (iCal/CalDav) format

Open SharePoint calender event, click on the 'Custom Commands' tab and click 'Export Event'. You will be prompted to save a file of '.ics' type - this is the iCalendar compatible file and once opened will work with all calendar clients.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!