Specifies
filter parameters that control the actions of cfexchangemail, cfexchangecalendar, cfexchangetask,
and cfexchangecontact, get operations.
ColdFusion 8: Added this tag.
Communications tags
<cfexchangefilter
name = "filter type"
value = "filter value">
OR
<cfexchangefilter
name = "filter type"
from = "date/time"
to = "date/time">
attributeCollection attribute
whose value is a structure. Specify the structure name in the attributeCollection attribute
and use the tag’s attribute names as structure keys.cfexchangecalendar,cfexchangeconnection, cfexchangecontact, cfexchangemail, cfexchangetask, Getting Exchange
items and attachments in the Developing ColdFusion Applications
Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
|
Required |
The type of filter to use. |
|
|
Optional |
The start date or date/time combination
of the range to use for filtering. Cannot be used with the The value can be in any date/time format recognized by ColdFusion, but must correspond to a value that is appropriate for the filter type. |
|
|
Optional |
The end date or date/time combination for
the range used for filtering. Cannot be used with the The value can be in any date/time format recognized by ColdFusion, but must correspond to a value that is appropriate for the filter type. |
|
|
Optional |
The filter value for all filters that do
not take a date or time range. Cannot be used with the ColdFusion generates an error if you specify this attribute with an empty contents. Therefore, you cannot use the empty string to search for empty values. If you set this attribute to the empty string (""), ColdFusion searches for entries where the specified field is empty. 6.07 |
The cfexchangeCalendar tag
filters can have the following name attributes and
associated value, or to and from attributes
that you use to specify the filter parameters for the specified
action:
name attribute |
Specification attributes |
Valid specification attribute values |
|---|---|---|
|
|
A positive integer specifying the maximum number of matching rows to return. By default, the maximum number of rows is 100. You can also specify -1; to return all matching rows. |
|
|
A Boolean value. |
|
|
An integer number of minutes. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
An Exchange user ID. |
|
|
A Boolean value. |
|
|
One of the following values:
|
|
|
A Boolean value. |
|
|
A string. |
|
|
A string. |
|
|
A comma-delimited list of Exchange user IDs. |
|
|
A string that identifies the organizer. This value does not need to be an Exchange ID or e-mail address. |
|
|
A comma-delimited list of Exchange user IDs. |
|
|
One of the following values:
|
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A string. |
|
|
A case-sensitive Exchange message UID that uniquely identifies one calendar entry. |
The cfexchangecontact tag
filters can have the following name attributes and
associated value attributes. Unlike other tags,
you do not use from or to attributes.
name attribute |
value attribute |
|---|---|
|
You can also specify -1; to return all matching rows. |
|
A string. |
|
A structure with the following fields: Street, City, State, Zip, Country. |
|
A string. |
|
A string. |
|
A comma-delimited list of categories. The filter searches for contacts that match all the categories in the list. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A Boolean value. |
|
A structure with the following fields: Street, City, State, Zip, Country. |
|
A string. |
|
A string. |
|
A string. |
|
One of the following values: |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A structure with the following fields: Street, City, State, Zip, Country. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
|
A string. |
The cfexchangemail tag
filters can have the following name attributes
and associated value, or to and from attributes
that you use to specify the filter parameters for the specified
action:
name attribute |
Specification attributes |
Specification attribute values |
|---|---|---|
|
|
A positive integer that specifies the maximum number of matching rows to return. By default, the maximum number of rows is 100. You can also specify -1; to return all matching rows. |
|
|
A comma-delimited list of Exchange or web e-mail addresses. |
|
|
A comma-delimited list of Exchange or web e-mail addresses. |
|
|
The forward slash (/) delimited path from
the root of the Exchange mailbox to the folder to search. By default,
the filter searches the top level of the Inbox. The If a folder name contains a forward slash, use the _xF8FF_ escape sequence to specify the character in the name. For the |
|
|
An Exchange or web e-mail address. |
|
|
A Boolean value |
|
|
One of the following values:
|
|
|
A Boolean value. |
|
|
A string. |
|
|
One of the following values: If you omit this attribute, the filter gets messages of all types. The |
|
|
A case-sensitive Exchange calendar event
UID. Meeting UIDs are used in |
|
|
One of the following values:
|
|
|
A string. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A comma-delimited list of Exchange or web e-mail addresses. |
|
|
A case-sensitive Exchange message UID. |
The cfexchangetask tag
filters can have the following name attributes
and associated value, or to and from attributes
that you use to specify the filter parameters for the specified
action:
name attribute |
Specification attributes |
Specification attribute values |
|---|---|---|
|
|
A positive integer specifying the maximum number of matching rows to return. By default, the maximum number of rows is 100. You can also specify -1; to return all matching rows. |
|
|
A number representing the number of hours. Use decimal numbers to specify minutes. |
|
|
A string. |
|
|
A string. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A comma-delimited list of Exchange mail IDs. This filter value is useful if the connection user has delegate rights for multiple users and you want to select the tasks of a limited number of those users. |
|
|
A string. |
|
|
A string. |
|
|
A number between 0 and 100. |
|
|
One of the following values:
|
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
A string that ColdFusion can interpret as a date-time value. |
|
|
Must be one of the following values:
|
|
|
A string. |
|
|
A number that represents the number of hours. Use decimal numbers to specify minutes. |
|
|
A case-sensitive Exchange UID. |
The cfexchangefilter tag
specifies the conditions to match when ColdFusion gets mail messages,
calendar entries, tasks, or contacts. Only those entries that match
the specified filter conditions are returned in the structure specified
by the parent tag’s name attribute. If the filter
specifies a field that takes a text string, such as Message and
or Subject, ColdFusion returns items that contain the exact phrase
that you specify in the value attribute.
The cfexchangefilter tag
must be a child tag of a cfexchangecalendar, cfexchangecontact, cfexchangemail,
or cfexchangetask tag with an action attribute
value of get.
If you specify multiple cfexchangefilter tags
in the body of a ColdFusion exchange tag, such as cfexchangemail,
the specified filters are cumulative, and the selected records match
the conditions specified in all the cfexchangefilter tags.
If you specify multiple cfexchangefilter tags with
the same name attribute value, the last tag with
that attribute specifies the filter conditions.
The
following example gets the mail messages that were sent to a user
during the last week from any e-mail address that includes adobe.com.
To focus on getting messages, rather than on displaying data, the
example uses the cfdump tag to show the results.
<cfset endTime = Now()>
<cfset startTime = DateAdd("d","-7", endTime)>
<cfexchangemail action="get" name="weeksMail" server="#exchangeServerIP#"
username ="#user1#" password="#password1#">
<cfexchangefilter name="FromID" value="adobe.com">
<cfexchangefilter name="TimeSent" from="#startTime#" to="#endTime#">
</cfexchangemail>
<cfdump var="#weeksMail#">