Skip to main content
February 28, 2015
Question

loop a cfldap query

  • February 28, 2015
  • 1 reply
  • 384 views


I'm trying to get a list of users in a distribution group through a cfldap query, but my record count is always 1.

I've tried:

<cfloop query="results">

<cfoutput>

Name: #cn# Email: #mail#<br/>

</cfoutput>

</cfloop>

<cfoutput>#results.RecordCount#</cfoutput> Value I get back is 1.

Also tried

<cfdump> <cftable> but the results are always the first record.

I'm thinking I need to loop the query and create a list somehow, but I'm getting lost in all the online documentation. Could someone point me in the right direction?

Mahalo;

Charles

    This topic has been closed for replies.

    1 reply

    Inspiring
    March 9, 2015

    Did you check the result set is actually 1 or not?