Skip to main content
Participant
February 10, 2014
Question

cfexchangecontact with cfexchangefilter

  • February 10, 2014
  • 1 reply
  • 429 views

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 &lt;/cfexchangecontact&gt; 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).

This topic has been closed for replies.

1 reply

Participating Frequently
February 10, 2014

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>