Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Linking to calendars

Recover your account here

This topic describes how to add an Add to Calendar link or button to a webpage. Users can add events to their calendars by clicking an Add to Calendar link or button on a webpage. You can also keep users informed of events and activities that are related to your site by using Outlook.com calendars.

Adding events and tasks to calendars from a webpage

You can create these types of Add to Calendar links:

  • Synced-calendar link

    A synced-calendar link keeps the user's calendar synchronized with your website's calendar.

  • Single-event link

    A single-event link adds a specific event or activity to a user's calendar.

  • Single-task-item link

    A single-task-item link adds a new task to a user's calendar.

Creating a synced-calendar link

You can create a synced-calendar link in one of three ways:

  • Create an iCal subscription file.
  • Create a URL with which users subscribe to the iCal file.
  • Use an existing iCal-compliant file that is publicly accessible on the web.

After a user subscribes to your calendar, any changes you make to the original calendar appear in the user's calendar.

To create an iCal subscription file

  1. Go to http://www.calendar.live.com/ and sign in with your Microsoft account.
  2. From the New menu, select Calendar.
  3. In the Sharing section of the Add a new calendar page, click Edit sharing.
  4. Select the Share this calendar option.
  5. Select the Make your calendar public check box.
  6. In the Permissions list, click View details.
  7. Click Save. The calendar appears in the calendar picker on the left side of the page.
  8. You can now access the URL that is required for users to subscribe to the calendar.

To create a URL for users to subscribe to your calendar

  1. Click the name of the calendar that you created.
  2. Click the Edit sharing link.
  3. Click the Import into another calendar application link. A dialog box appears that contains the URL of your public iCal calendar.
  4. Create a link that enables users to add your calendar to theirs. The link URL must have this format:

    http://calendar.live.com/calendar/calendar.aspx?rru=addsubscription&url=ICAL_SUBSCRIPTION_URL&name=YOUR_CALENDAR_NAME

    In the preceding example, ICAL_SUBSCRIPTION_URL is the URL to the iCal calendar and YOUR_CALENDAR_NAME is the calendar's name.

  5. You can now add the link to your website. When users click the link, they are presented with the option to subscribe to your calendar. After users subscribe, their calendars are automatically kept synchronized with the calendar on your website.

Creating a single-event link

To create a single-event link, create a URL in this format.

http://calendar.live.com/calendar/calendar.aspx?rru=addevent&dtstart=START_DATE_AND_TIME&dtend=END_DATE_AND_TIME&summary=EVENT_TITLE&location=LOCATION_TEXT

The following table describes the parameters in a single-event link's URL.

Parameter

Format

Description

START_DATE_AND_TIME

yyyymmddThhmmss

Required. Specifies the event's start date and time. For example, 20110101T120000 represents January 1, 2011, at noon. Note that the portion specifying the event time (T120000) is optional.

END_DATE_AND_TIME

yyyymmddThhmmss

Required. Specifies the event's end date and time. For example, 20110101T120000 represents January 1, 2011, at noon. Note that the portion specifying the event time (T120000) is optional.

EVENT_TITLE

Escaped string

Optional. Specifies the event's title.

LOCATION_TEXT

Escaped string

Optional. Specifies the event’s location text.

 

Top

Creating a single-task-item link

To create a single-task-item link, create a URL in this format.

http://calendar.live.com/calendar/calendar.aspx?rru=addevent&summary=EVENT_TITLE&dtdue=DUE_DATE_AND_TIME

The following table describes the parameters for a single-task item.

Parameter

Format

Description

EVENT_TITLE

Escaped string

Optional. Specifies the task item's title.

DUE_DATE_AND_TIME

yyyymmddThhmmss

Required. Specifies the due date and time of the task item. For example, 20110101T120000 represents January 1, 2011, at noon. Note that the portion specifying the task item's time (T120000) is optional.

 

Top

 

 

Show:
© 2014 Microsoft