• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfexchangecontact with cfexchangefilter

New Here ,
Feb 10, 2014 Feb 10, 2014

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 &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).

Views

387

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 10, 2014 Feb 10, 2014

Copy link to clipboard

Copied

LATEST

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation