1 Reply Latest reply on Feb 10, 2014 7:00 AM by duncancumming

    cfexchangecontact with cfexchangefilter

    timbtp

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

        • 1. Re: cfexchangecontact with cfexchangefilter
          duncancumming Level 3

          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>