Whatever message this page gives is out now! Go check it out!
create
<cfexchangetask
required
action = "create"
task = "#task information structure#"
optionalaccess_token="token",
connection = "connection ID"
result = "variable for event UID">
delete
<cfexchangetask
required
action = "delete"
uid = "task UID,task UID, ..."
optional
connection = "connection ID">
deleteAttachments
<cfexchangetask
required
action = "deleteAttachments"
uid = "task UID"
optional
connection = "connection ID">
get
<cfexchangetask
required
action = "get"
name = "query identifier"
optional
connection = "connection ID">
getAttachments
<cfexchangetask
required
action = "getAttachments"
name = "query identifier"
uid = "task UID"
optional
attachmentPath = "directory path"
connection = "connection ID"
generateUniqueFilenames = "no|yes">
modify
<cfexchangetask
required
action = "modify""
task = "#task information structure#"
uid = "task UID">
optional
connection = "connection ID">Attribute | Action | Req/Opt | Default | Description |
action | all | Required | The action to take. Must be one of the following values:
| |
| access_token | Optional | An oauth access token built with Microsoft Graph API scopes that is required to connect with exchange online. | ||
| username | all | Optional | The Exchange user ID. | |
| password | all | Optional | The password for accessing the Exchange server. | |
| server | all | Optional | The IP address or URL of the server that is providing access to Exchange. | |
attachmentPath | getAttachments | Optional | The filepath of the directory in which to put the attachments. If the directory does not exist, ColdFusion creates it. Note: 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. | |
connection | all | Optional | The name of the connection to the Exchange server, as specified in the cfexchangeconnection tag. If you omit this attribute, create a temporary connection by specifying cfexchangeconnection tag connection attributes in the cfexchangetask tag. | |
generateUniqueFilenames | getAttachments | Optional | no | A Boolean value that specifies whether to generate unique filenames if multiple attachments have the same filenames. If two or more attachments have the same filename and this option is yes, ColdFusion appends a number to the filename body (before the extension) of any conflicting filenames. Thus, if three attachments have the name myfile.txt, ColdFusion saves the attachments as myfile.txt, myfile1.txt, and myfile2.txt. |
name | getgetAttachments | Required | The name of the ColdFusion query variable that contains the returned task records or information about the attachments that were retrieved. For more information on the returned data, see Usage. | |
result | create | Optional | The name of a variable that contains the UID of the task that is created. You use this value in the uid attribute of other actions to identify the task to be acted on. | |
serverVersion | Optional | 2007 | Specifies the Microsoft Exchange Server version. The values are:
The value you specify overrides the value that you specify at the application level. | |
task | createmodify | Required | A reference to the structure that contains the task properties to be set or changed and their values. Specify this attribute in number signs (#). For more information on the event structure, see Usage. | |
uid | deletegetAttachmentsmodify | Required | A case-sensitive Exchange UID value that uniquely identifies the tasks on which to perform the action. For the delete action, this attribute can be a comma-delimited list of UID values. The deleteAttachments, getAttachments, and modify actions allow only a single UID value. |
Column | Description |
ActualWork | A number in minutes. Cannot be less than zero. |
Attachments | The pathnames of any attachments to include in the task. To specify multiple files, separate filepaths with semicolons (;) for Windows, and colons (:) for UNIX and Linux. Use absolute paths. If you specify one or more attachments for a modify action, these are added to any existing attachments; the pre-existing attachments are not deleted. |
Categories | A comma-delimited list of categories. The filter searches for tasks that match all the categories in the list. |
BillingInfo | A string. |
Companies | A string. |
DateCompleted | A string in a date format that is valid in ColdFusion. If you omit this field and set the Status field to completed, or set the PercentCompleted field to 100, this value is set to the current date. If you set this date, the Status value is set to Completed and the PercentCompleted field is set to 100. |
DueDate | A string in a date format that is valid in ColdFusion. |
Message | A string containing the task description. |
Mileage | A string. |
PercentCompleted | A number in the range 0-100. If you set this field to 100, The following values are set:
|
Priority | One of the following values:
|
ReminderDate | A string in a date format that is valid in ColdFusion. |
StartDate | A string in a date format that is valid in ColdFusion. When you create a task, the default value defaults is the current date. |
Status | The following values are valid: Not_Started, In_Progress, Completed, Waiting, or Deferred. If you omit this field and the PercentCompleted value is less than 100, the Status value it is set to In_Progress. If you set this field to Completed, the following values are also set:
|
Subject | A String. |
TotalWork | A number in minutes. Cannot be less than zero. |
Column name | Description |
attachmentFileName | The filename of the attachment. |
attachmentFilePath | The absolute path of the attachment file on the server. If you omit the attachmentPath attribute, this column contains the empty string. |
CID | The content-ID of the attachment. Typically used in HTML img tags to embed images in a message. |
mimeType | The MIME type of the attachment, such as text/html |
isMessage | A Boolean value that specifies whether the attachment is a message. |
size | The attachment size, in bytes. |
attachmentpath = "ram:///path" |
<cfscript>
stask=StructNew();
stask.Priority="high";
stask.Status="Not_Started";
stask.DueDate="3:00 PM 09/14/2007";
stask.Subject="My New Task";
stask.PercentCompleted=0;
</cfscript>
<cfexchangetask action="create"
username = "user1"
password = "password1"
mailboxname ="user1"
server = "exchangeServerIP"
serverversion="version"
protocol="protocol"
task = "stask"
result="taskID"/>
<cfdump var="#taskID#" >