cfexchangecalendar

Creates, deletes, modifies, gets, and responds to Microsoft Exchange calendar events, and gets calendar event attachments.

  <cfexchangecalendar action="create" event="" name="" responsetype="accept" uid="">

 cfexchangecalendar(action="create", event="", name="", responsetype="accept", uid="");

This tag requires Adobe ColdFusion 8 and up.  Not supported on Lucee, etc.

Attribute Reference

action string
Required

The action to take. Must be one of the following: create, delete, get, getAttachments, modify, respond (required)
Values:
  • create
  • delete
  • deleteAttachments
  • get
  • getAttachments
  • modify
  • respond

attachmentpath string

The file path of the destination directory.
If the directory does not exist, ColdFusion creates it.
If you omit this attribute, ColdFusion does not save any attachments.
If you specify a relative path, the path root is the ColdFusion temporary directory, which is returned by the GetTempDirectory function. (optional)

connection variableName

The name of the connection to the Exchange server, as specified in the cfexchangeconnection tag.
If you omit this attribute, you must create a temporary connection by specifying cfexchangeconnection tag connection attributes in the cfexchangecalendar tag. (optional)

event any
Required

A reference to the structure that contains the event properties to be set or changed and their values.
You must specify this attribute in number signs (#). (required)

generateUniquefilenames boolean

A Boolean value specifying whether to generate unique file names if multiple attachments have the same file names.
Case "yes": 3x myfile.txt -> myfile.txt, myfile1.txt, and myfile2.txt. (optional, default=no)
Values:
  • true
  • false

message string

The text of an optional message to send in the response or deletion notification. (optional)

name string
Required

The name of the ColdFusion query variable that will contain the retrieved events or information about the attachments that were retrieved. (required)

notify boolean

Boolean value specifying whether to notify others of the changes made to the event (optional)
Values:
  • true
  • false

responseType string
Required

(respond) Must be one of the following: accept, decline, tentative (required)
Values:
  • accept
  • decline
  • tentative

result string

The name of a variable that will contain the UID of the event that is created.
You use the UID value in the uid attribute other actions to identify the event to be acted on. (optional)

uid string
Required

Case-sensitive Exchange UID value or values that uniquely identify the event or events
on which to perform the action.
For the delete action, this attribute can be a comma delimited list of UID values.
The getAttachments, modify, and respond actions allow only a single UID value. (required)

Examples
Sample code using the cfexchangecalendar tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub