Ruby script to transfer appointed leads to vTiger CRM
![Post Post](./styles/vicidial/imageset/icon_post_target.gif)
Hello All,
Hope this is of some use to somebody, I wrote a little Ruby script which when run as a cron job checks for leads dis-positioned as 'APP' and then inserts them into vTiger as a new lead to be worked. Let me know if there is anything I can cleanup in it, been running well for a couple of months though so I'm happy it's working.
At this site 192.168.1.17 is the server running vTiger and a slave database to the main ViciDial diallers one as I didn't want to load up the main server with these queries. I make the insert as the admin user but assign the lead to the main sales manager.
Gah, forum thinks my code is spam. I'll try and work out another was of sharing this in a sec. Maybe pastebin.
Hope this is of some use to somebody, I wrote a little Ruby script which when run as a cron job checks for leads dis-positioned as 'APP' and then inserts them into vTiger as a new lead to be worked. Let me know if there is anything I can cleanup in it, been running well for a couple of months though so I'm happy it's working.
At this site 192.168.1.17 is the server running vTiger and a slave database to the main ViciDial diallers one as I didn't want to load up the main server with these queries. I make the insert as the admin user but assign the lead to the main sales manager.
Gah, forum thinks my code is spam. I'll try and work out another was of sharing this in a sec. Maybe pastebin.