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

How to sort output of <cfexchangemail...

Community Beginner ,
Aug 09, 2007 Aug 09, 2007

Copy link to clipboard

Copied

I have searched everywhere to find this simple answer to a simple question. No seems to have asked this question so far.

Here is my code:
<cfexchangeConnection
action="open"
username="**********"
password="**********"
server="**********"
connection="testconn1">

<cfexchangemail action="get" name="getMail" folder="" connection="testconn1">
<cfexchangefilter name="TimeSent" from="#lastweek#" to="#rightNow#">
</cfexchangemail>

.....Output Code ....

<cfexchangeConnection
action="close"
connection="testconn1">

The output comes out not sorted in any particular way. Is there a way for me to change the order of the output?

Thanks in advance.

Regards,

Eric
TOPICS
Advanced techniques

Views

183

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

correct answers 1 Correct answer

Community Beginner , Aug 09, 2007 Aug 09, 2007
Answer... :)

<cfset columnId = query.findColumn("TimeReceived")>
<cfset query.sort(columnId, false)>

Votes

Translate

Translate
Community Beginner ,
Aug 09, 2007 Aug 09, 2007

Copy link to clipboard

Copied

LATEST
Answer... :)

<cfset columnId = query.findColumn("TimeReceived")>
<cfset query.sort(columnId, false)>

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