Advertisements

Automatic iCal (.ics) hyperlinks for SharePoint calendar items using calculated column

ical7

Updated 10/17/17

This project allows users a quick option to save something they see on a SharePoint calendar to their own calendar. Spend 5 minutes on these few instructions and your users will have a convenient way to get involved going forward. Note that in modern calendar experiences, there’s a built-in “add to calendar” option for event items. This post is for classic experience calendars and calendar items/events.

Basically we’re going to add a calculated text column called iCal which will use the list’s GUID (easy to get, don’t worry) and the specific calendar item’s default ID number to generate a clickable .ics (iCal) file link. Let’s get started!

  1. Go to your calendar
  2. Click “Calendar” in the ribbon
    ical1
  3. Click “List Settings”
    ical2
  4. Copy everything in the address bar after “List=”. This should begin with %7B and %7D. This is your calendar’s GUID in hyperlink-friendly formatting.
    ical4
  5. Create a column (Beneath columns section)
    ical3
  6. Set it up as follows, pasting your GUID (for now) in the formula field. Don’t click OK yet.
    ical5
  7. Paste the following in your formula field, moving your GUID to replace the placeholder here. Also put the correct Site URL (myexample.sharepoint.com/teams/site/subsite, for example)

    =CONCATENATE(“https://{Site or Subsite URL}/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List={GUID}&CacheControl=1&ID=”,[ID],”&Using=event.ics”)

  8. Click OK
  9. Check the result. Open a calendar item. You should see an iCal item with the hyperlinked text.
    ical6
  10. Upon clicking the URL, your browser will prompt you to open the file. Open it.
  11. Your email client will open the .ics file. Make any revisions to the calendar item you wish, then simply click save to add it to your calendar.
    ical7

That’s it! Let me know if you run into any problems.

Advertisements

7 Comments

  1. Pingback: .NET & Java Azure Cloud Management Libraries; Management Costs of Office 365; Creating Power BI Dashboards

  2. John Berger

    Reply

    I have added the formula and it seems to work with all events that were already added. However, if I add a new event the event ID does not get added. Therefore, the ics file opens with everything blank.

      • Koen Reynaert

        Reply

        It is not a good idea to use fields which are not in the list when defining calculated fields. ID are not mentioned. And as you experiences, IDs are filled in for existing items, but not for new items.

        Solid solution is to use jslink to generate the data/URL.

  3. Imran Naqvi

    Reply

    This gives me an error with the formula stating: Sorry, something went wrong
    The formula contains a syntax error or is not supported.

    My formula: =CONCATENATE(“https://domain.sharepoint.com/Lists/Calendar/calendar.aspx/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List={MYGUID}&CacheControl=1&ID=”,[ID],”&Using=event.ics”)

      • Basha Himmatgori

        Reply

        Hi Melissa, would you please put an example. Something like before & after. I have similar formula syntax error. I am getting exactly what do u mean ..I replaced all the quotation marks with ” ..

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: