Adobe COLDFUSION 9 Manual page 1216

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
Using transient connections
Transient connections last only as long as the tag that uses them takes to complete processing. To create a transient
connection, you specify the connection directly in your action tag (such as
attributes as you do in the
cfexchangeconnection
The following example uses a transient connection to create a single task:
<!--- Create a structure with the task fields. --->
<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;
Message = "Do this NOW!";
</cfscript>
<!--- Create the task by using a transient connection. --->
<cfexchangetask action = "create"
username = "#user1#"
password = "#password1#"
server = "#exchangeServerIP#"
task = "#stask#"
result = "theUID">
<!--- Display the UID to confirm that the action completed. --->
<cfdump var = "#theUID#">
Accessing delegated accounts
In Exchange, one user can grant, or delegate, another user access rights to their account. Users can delegate reviewer
(read-only), author (read/write), or editor (read-write-delete) rights to any combination of the calendar, contacts,
Inbox, or task list.
Note: You cannot use ColdFusion to delegate access rights.
To access the delegator's account as a delegated user, specify the following information:
• Specify the delegated user's user name and password in the
• Specify the mailbox name of the account that you are accessing in the
You can access the account in a
Exchange tag that uses a transient connection.
For example, if access rights to the docuser3 account are delegated to docuser4, you can use the
tag as in the following example to open a connection to the docuser3 account by using
cfexchangeconnection
docuser4's credentials:
<cfexchangeconnection action="open"
connection="theConnection"
server="myexchangeserver.mycompany.com"
username="docuser4"
password="secret"
mailboxName="docuser3">
tag (except for the connection name).
tag that opens a persistent connection, or in a ColdFusion
cfexchangeconnection
Last updated 8/5/2010
cfexchangetask)
and
attributes.
username
password
attribute.
mailboxName
1211
by using the same

Advertisement

Table of Contents
loading

Table of Contents