Copy link to clipboard
Copied
Has anyone used the cfexchangecontact tag with the cfexchangefilter tag?
According to all the docs I'm seeing the following should work to pull down all exchange contacts for a user:
<cfexchangecontact action="get"
name="qContacts" username="#mailuser#"
password = "#mailuserpassword#"
mailboxname="#mailboxname#"
server="#mailserver#" />
<cfexchangefilter name="maxRows" value="-1">
</cfexchangecontact>
... but it generates an error:
Context validation error for tag cfexchangecontact.Either the end tag </cfexchangecontact> encountered on line xx at column 3 requires a matching start tag or tag cfexchangecontact does not support end tag.
cfexchangecontact works fine without an end tag, but only returns 100 records (the default).
Copy link to clipboard
Copied
Your problem is the trailing slash you have on your opening <cfexchangecontact> tag:
<cfexchangecontact ... />
That looks to the CF server as if you're trying to do:
<cfexchangecontact ...></cfexchangecontact>
When you're really trying to do:
<cfexchangecontact>
<cfexchangefilter>
</cfexchangecontact>
Simply remove that / so it looks like:
<cfexchangecontact action="get"
name="qContacts" username="#mailuser#"
password = "#mailuserpassword#"
mailboxname="#mailboxname#"
server="#mailserver#">
<cfexchangefilter name="maxRows" value="-1">
</cfexchangecontact>