How to change a disposition via MySQL

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to change a disposition via MySQL

Postby chasejordan1 » Fri Feb 22, 2013 7:52 pm

Here is the situation, I have an agent that quits and they have 50 CBHOLD's as an example and I want to change those to answering machine so that they go back into list and get recycled. I would think the fastest way to to do that is via SQL query for example something like this UPDATE vicidial_list SET status='A' WHERE status='CBHOLD'; but I want it to be specific to list ID and agent number and that I can seem to figure out.





ALL in one Server.
1.4.39.1-vici
VERSION: 2.4-359a
BUILD: 120213-1512
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: How to change a disposition via MySQL

Postby williamconley » Fri Feb 22, 2013 9:13 pm

Please also post your installation method with version (Vicibox 4.0.3? GoAutoDial 2.1?)

UPDATE vicidial_list SET status='A' WHERE status='CBHOLD' and user='{USER}' and list_id='{LIST_ID}';

Just add "and", then the new criteria.

I would suggest adding a new status like "CBREL" for CallBackRelease to make these visible as released callbacks. In case you want to track stats on these aside from real Answering Machine statuses.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to change a disposition via MySQL

Postby chasejordan1 » Fri Feb 22, 2013 10:32 pm

Thank you, as always you are a big help, and I know better when it comes to posting, I will flog myself later :)

Thad
chasejordan1
 
Posts: 182
Joined: Fri Mar 07, 2008 11:57 am

Re: How to change a disposition via MySQL

Postby williamconley » Sat Feb 23, 2013 10:38 am

never wait 'til later. Besides, it works better if you hire someone to flog you. Frees up your time to get into more mischief.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to change a disposition via MySQL

Postby DomeDan » Mon Feb 25, 2013 5:12 am

Worth mention: update the vicidial_callbacks table too and set status = INACTIVE because you don't want a callback to be triggered when the lead has an other status then CALLBK or CBHOLD.

else you might end up with this scenario:
* agent A calls a lead and register a "anyone"-callback to 2013-03-25
* you update that lead to NEW in vicidial_list
* agent B calls the lead and register a SALE
* and at 2013-03-25 the lead will be inserted into the hopper even if it was registered as SALE a few days earlier.

be prepared for stuff like this when you starts playing with the vicidial tables.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: How to change a disposition via MySQL

Postby williamconley » Mon Feb 25, 2013 10:45 am

! Excellent point DomeDan!
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to change a disposition via MySQL

Postby DomeDan » Mon Feb 25, 2013 12:40 pm

Thank you! :) talking from experience you know, took a while to pin down why NI, SALE etc were being called.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 160 guests