Greetings -
I'm running various reports on our phone system (ShoreTel) through CR XI. We are needing to know when a user transfers a call out to another internal number or external number. Currently ShoreTel only marks a Transfer when you RECEIVE the transfer. They DO NOT mark a status for when you SEND a transfer.
Here is what I have to work with:
Each call record has a PRIKEY of CallTableID.
Here is a small sample of what I have for clarity...
PartyID ConnectReason TableCallID
2298 Called 1,145,395.00 (received an outside call)
19999999999 Originate 1,145,395.00 (This is the incoming external call)
2267 Transfer 1,145,395.00 (2267 receives a transfered call)
Through assistance here I have been able to isolate the data I need (PartyID from Called line). Now I need assistance in comparing the PartyID to an array of extensions (same length, same data type) and summing all the calls from each {?extension}. I'm not quite sure how to set this up but I'm thinking something like this:
Current formula to display PartyID from Called line: (this currently displays the correct information I need)
if {connect.ConnectReason} = 9 and
{connect_1.ConnectReason} = 17 and
{connect_1.PartyIDName} <> "VM Login"
then {connect_1.PartyID}
else "0";
I assume that I need to assign the "then {connect_1.PartyID}" to a global array x. Once this is finished collecting all of the data into the array (3000+ numbers max) I need to then compare it to the list of extensions.
Something like this?
for each x
if x = {?extension}
then 1
else 0
Thank you for any assistance you can provide.
Jason
I'm running various reports on our phone system (ShoreTel) through CR XI. We are needing to know when a user transfers a call out to another internal number or external number. Currently ShoreTel only marks a Transfer when you RECEIVE the transfer. They DO NOT mark a status for when you SEND a transfer.
Here is what I have to work with:
Each call record has a PRIKEY of CallTableID.
Here is a small sample of what I have for clarity...
PartyID ConnectReason TableCallID
2298 Called 1,145,395.00 (received an outside call)
19999999999 Originate 1,145,395.00 (This is the incoming external call)
2267 Transfer 1,145,395.00 (2267 receives a transfered call)
Through assistance here I have been able to isolate the data I need (PartyID from Called line). Now I need assistance in comparing the PartyID to an array of extensions (same length, same data type) and summing all the calls from each {?extension}. I'm not quite sure how to set this up but I'm thinking something like this:
Current formula to display PartyID from Called line: (this currently displays the correct information I need)
if {connect.ConnectReason} = 9 and
{connect_1.ConnectReason} = 17 and
{connect_1.PartyIDName} <> "VM Login"
then {connect_1.PartyID}
else "0";
I assume that I need to assign the "then {connect_1.PartyID}" to a global array x. Once this is finished collecting all of the data into the array (3000+ numbers max) I need to then compare it to the list of extensions.
Something like this?
for each x
if x = {?extension}
then 1
else 0
Thank you for any assistance you can provide.
Jason