CalendarPublish()

Configure a calendar for publishing to the internet.

Token ID

AFTKIN_CALENDAR_PUBLISH or 935

Syntax

VOID CalendarPublish(
     [WIDESTRING] FolderName;
     [ENUM] Publish;
     [ENUM] Mode;
     [DWORD] RelativeStartDays;
     [DWORD] RelativeEndDays;
     [ENUM] IncludePrivate;
     [ENUM] IncludeAttachments)

Parameters

FolderName As WIDESTRING

(Optional) The full path of the calendar folder to publish.

Publish As ENUM

(Optional)

  • 0 No. Revoke access to a previously published calendar.
  • 1 Yes. Publish calendar information to the internet.
Mode As ENUM

(Optional)

  • 0 Entire. Publish all events on the calendar. RelativeStartDays and RelativeEndDays are ignored.
  • 1 Relative. RelativeStartDays and RelativeEndDays specify a floating window of events that will be published. The list of events is dynamically updated every time a client requests that published calendar to include events that fall within a specified time period.
  • 2 Absolute. RelativeStartDays and RelativeEndDays specify a fixed time period relative to today. The list of events are static and will not be updated as time goes on.
RelativeStartDays As DWORD

(Optional) The number of days forward or backward from the current day to start publishing events.

RelativeEndDays As DWORD

(Optional) The number of days forward or backward from the current day to stop publishing.

IncludePrivate As ENUM

(Optional)

  • 0 No. Do not publish calendar events marked as private.
  • 1 Yes. Publish calendar events even if they are marked private.
IncludeAttachments As ENUM

(Optional)

  • 0 No. Do not publish information about attachments (such as documents and files) that are associated with a calendar event.
  • 1 Yes. Publish information about attachments (such as documents and files) that are associated with the calendar events.

Remarks

Note that this token is only enabled when the GroupWise system is configured for calendar publishing by the administrator.

Note that a user’s primary calendar cannot be published to the Internet.