Whatever message this page gives is out now! Go check it out!
create
<cfexchangecontact
required
action = "create"
contact = "#contact information structure#"
optionalaccess_token="token"
connection = "connection ID"
result = "variable for contact UID">
delete
<cfexchangecontact
required
action = "delete"
uid = "contact UID,contact UID, ..."
optional
connection = "connection ID">
deleteAttachments
<cfexchangecontact
required
action = "deleteAttachments"
uid = "contact UID"
optional
connection = "connection ID">
get
<cfexchangecontact
required
action = "get"
name = "query identifier"
optional
connection = "connection ID">
getAttachments
<cfexchangecontact
required
action = "getAttachments"
name = "query identifier"
uid = "contact UID"
optional
attachmentPath = "directory path"
connection = "connection ID"
generateUniqueFilenames = "no|yes">
modify
<cfexchangecontact
required
action = "modify"
contact = "#contact information structure#"
uid = "contact UID"
optional
connection = "connection ID>"Attribute | Action | Req/Opt | Default | Description |
action | N/A | 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 absolute 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. | |
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 open action attributes in the cfexchangecontact tag. | |
contact | createmodify | Required | A reference to the structure that contains the contact properties to be set or changed and their values. Specify this attribute in number signs (#). For more information on the event structure, see Usage. | |
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 contact 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 contact that is created. Use this value in the uid attribute of other actions to identify the contact to be acted on. | |
serverVersion | Optional | 2007 | Specifies the Microsoft Exchange Server version. The values are:
| |
uid | getAttachmentsdeletemodify | Required | A case-sensitive Exchange UID value that uniquely identifies the contacts 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. |
Assistant | Attachments | BusinessAddress | BusinessFax |
BusinessPhoneNumber | Categories | Company | Department |
Description | DisplayAs | Email1 | Email2 |
Email3 | FirstName | HomeAddress | HomePhoneNumber |
JobTitle | LastName | MailingAddressType | Manager |
MiddleName | MobilePhoneNumber | NickName | Office |
OtherAddress | OtherPhoneNumber | Pager | Profession |
SpouseName | WebPage |
attachmentpath = "ram:///filepath" |
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 specifying whether the attachment is a message. |
size | The attachment size in bytes. |
attachmentpath = "ram:///path" |
<!--- Create a structure to hold the contact information. --->
<cfset sContact="#StructNew()#">
<!--- A self-submitting form for the contact information --->
<cfform format="flash" width="550" height="460">
<cfformitem type="html"><b>Name</b></cfformitem>
<cfformgroup type="horizontal" label="">
<cfinput type="text" label="First" name="firstName" width="200">
<cfinput type="text" label="Last" name="lastName" width="200">
</cfformgroup>
<cfformgroup type="VBox">
<cfformitem type="html"><b>Address</b></cfformitem>
<cfinput type="text" label="Company" name="Company" width="435">
<cfinput type="text" label="Street" name="street" width="435">
<cfinput type="text" label="City" name="city" width="200">
<cfselect name="state" label="State" width="100">
<option value="CA">CA</option>
<option value="MA">MA</option>
<option value="WA">WA</option>
</cfselect>
<cfinput type="text" label="Country" name="Country" width="200" Value="U.S.A.">
<cfformitem type="html"><b>Phone</b></cfformitem>
<cfinput type="text" validate="telephone" label="Business" name="businessPhone"
width="200">
<cfinput type="text" validate="telephone" label="Mobile" name="cellPhone"
width="200">
<cfinput type="text" validate="telephone" label="Fax" name="fax" width="200">
<cfformitem type="html"><b>Email</b></cfformitem>
<cfinput type="text" validate="email" name="email" width="200">
</cfformgroup>
<cfinput type="Submit" name="submit" value="Submit" >
</cfform>
<!--- If a form was submitted, populate the contact structure from it. --->
<cfif isDefined("Form.Submit")>
<cfscript>
sContact.FirstName=Form.firstName;
sContact.Company=Form.company;
sContact.LastName=Form.lastName;
sContact.BusinessAddress.Street=Form.street;
sContact.BusinessAddress.City=Form.city;
sContact.BusinessAddress.State=Form.state;
sContact.BusinessAddress.Country=Form.country;
sContact.BusinessPhoneNumber=Form.businessPhone;
sContact.MobilePhoneNumber=Form.cellPhone;
sContact.BusinessFax=Form.fax;
sContact.Email1=Form.email;
</cfscript>
<!--- Create the contact in Exchange --->
<cfexchangecontact action="create"
username ="#user1#"
password="#password1#"
server="#exchangeServerIP#"
contact="#sContact#"
result="theUID">
<!--- Display a confirmation that the contact was added. --->
<cfif isDefined("theUID")>
<cfoutput>Contact Added. UID is#theUID#</cfoutput>
</cfif>
</cfif><cfscript>
domain = "exchange.com"
contact.email1 = "john@example.comm"
contact.FirstName="John"
contact.Company="Adobe"
</cfscript>
<cfexchangecontact action="create"
username = "user1" <!--- sample --->
password = "password1"
mailboxname ="user1"
server = "exchangeServerIP"
serverversion="version"
protocol="protocol"
contact = "contact"
result = "contactUID"
>
<!--- multiple filters --->
<cfexchangecontact action="get"
name="qContacts"
username="user1"
password="Password1"
server="exchangeServerIP"
serverversion="version"
protocol="protocol"
mailboxname="user1">
<cfexchangefilter name="email1" value=contact.email1>
<cfexchangefilter name="company" value=contact.Company>
<cfexchangefilter name="FirstName" value=contact.FirstName>
</cfexchangecontact>
<cfoutput>Number of records returned: qContacts.RecordCount<br></cfoutput>
<cfoutput>email1: qContacts.email1</cfoutput><br>
<!--- one filters --->
<cfexchangecontact action="get"
name="qContacts"
username="user1"
password="Password1"
server="exchangeServerIP"
serverversion="version"
protocol="protocol"
mailboxname="user1">
<cfexchangefilter name="FirstName" value=contact.FirstName>
</cfexchangecontact>
<!--- <cfdump var=qContacts> --->
<cfoutput>Number of records returned: qContacts.RecordCount<br></cfoutput>
<cfoutput>FirstName: qContacts.FirstName</cfoutput><br>
<cfexchangecontact action="get"
name="qContacts"
username="user1"
password="Password1"
server="exchangeServerIP"
serverversion="version"
protocol="protocol"
mailboxname="user1">
<cfexchangefilter name="email1" value="nosuchentiy@adobe.com">
</cfexchangecontact>
<cfoutput>Number of records returned: qContacts.RecordCount<br></cfoutput>