<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Account Number in Outbound Report</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8422369" />
  <subtitle>Account Number in Outbound Report</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8422369</id>
  <updated>2013-05-24T09:19:07Z</updated>
  <dc:date>2013-05-24T09:19:07Z</dc:date>
  <entry>
    <title>Automatic reply: New Message from Vladimir Lazovic in Contact Center Report</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8548230" />
    <author>
      <name>Nick Santilli</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8548230</id>
    <updated>2012-11-14T08:07:50Z</updated>
    <published>2012-11-14T08:07:50Z</published>
    <summary type="html">I am out of the office in Training the entire week of November 12-16 with limited access to email. However I will respond as I am able to later in the day.
For pressing issues, please contact Colin Day (cday@msncomm.com&lt;https://owa.msncomm.com/ecp/Organize/cday@msncomm.com&gt;).

Thanks
nick santilli





*******************************************************************************

This message may contain confidential and/or privileged information. This
information is intended to be read only by the individual or entity to whom it
is addressed. If you are not the intended recipient, you are on notice that any
review, disclosure, copying, distribution or use of the contents of this
message is strictly prohibited. If you have received this message in error,
please notify the sender immediately and delete or destroy any copy of this
message.</summary>
    <dc:creator>Nick Santilli</dc:creator>
    <dc:date>2012-11-14T08:07:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Account Number in Outbound Report</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8547378" />
    <author>
      <name>Vladimir Lazovic</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8547378</id>
    <updated>2012-11-14T08:05:17Z</updated>
    <published>2012-11-14T08:05:17Z</published>
    <summary type="html">Hi Edwin, 
Will try definitely. 
 
Thank you Edwin.
 
Cheers 

V</summary>
    <dc:creator>Vladimir Lazovic</dc:creator>
    <dc:date>2012-11-14T08:05:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Account Number in Outbound Report</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8423987" />
    <author>
      <name>Edwin Andrews</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8423987</id>
    <updated>2012-11-08T16:21:54Z</updated>
    <published>2012-11-08T16:19:14Z</published>
    <summary type="html">[quote=Vladimir Lazovic]Hi everyone,
 
Can someone point me out to do the following: How can I collect AccountNumber in outbound campaigns and tie it to call results?
What I want to do is to show what are the results for every BAAccount that was dialed in campaign.
e.g.
Account    result      attempts
123456    voice         2
 
Thank you 
 
Vlad[/quote] 
/*
The AW/HDS view/table Dialer_Detail has all the information you are asking about, including ...:
AccountNumber,FirstName,LastName,CallResult
Converting the CallResultCode to a readable value will require a case statement, or a custom or temp table.
Doing the countAttempts aggregate while selecting only a single result will be trickier. 
Maybe can do a sub query for records that are closed, get the result code there, and then go back and count the attempts.*/
/* THIS RUNS */
select 
table1.AccountNumber,table1.FirstName,table1.LastName,table1.CallResult, count(DD.RecoveryKey) AS "Attempts"
from Dialer_Detail DD 
inner join 
    (SELECT AccountNumber,FirstName,LastName,CallResult
        From Dialer_Detail DD1 
        WHERE DD1.CallStatusZone1 like 'C' 
        AND DD1.DateTime &gt;'2012-11-05 00:00:00' --@StartDateTime
        and DD1.DateTime &lt; '2012-11-08 23:59:59' --@EndDateTime
            ) AS table1
on DD.AccountNumber = table1.AccountNumber
        AND DD.DateTime &gt;'2012-11-05 00:00:00' --@StartDateTime
        and DD.DateTime &lt; '2012-11-08 23:59:59' --@EndDateTime
group by table1.AccountNumber,table1.FirstName,table1.LastName,table1.CallResult
order by 5 desc
/* the inner select gives the details and result for the closed records
while the outer select does a count of attempts for those records that AARE closed. 
Have to use anonymous block because the date filter is used twice. */</summary>
    <dc:creator>Edwin Andrews</dc:creator>
    <dc:date>2012-11-08T16:19:14Z</dc:date>
  </entry>
  <entry>
    <title>Account Number in Outbound Report</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8422368" />
    <author>
      <name>Vladimir Lazovic</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8422368</id>
    <updated>2012-11-08T14:08:03Z</updated>
    <published>2012-11-08T14:08:03Z</published>
    <summary type="html">Hi everyone,
 
Can someone point me out to do the following: How can I collect AccountNumber in outbound campaigns and tie it to call results?
What I want to do is to show what are the results for every BAAccount that was dialed in campaign.
e.g.
Account    result      attempts
123456    voice         2
 
Thank you 
 
Vlad</summary>
    <dc:creator>Vladimir Lazovic</dc:creator>
    <dc:date>2012-11-08T14:08:03Z</dc:date>
  </entry>
</feed>

