[Vtigercrm-developers] change to lead delivery?

Alex Martin alex at theclearsource.com
Wed Oct 15 21:34:32 GMT 2014


I used to use a basic php script to import leads from an xml source while
processing some additional checks on our end prior to importing the lead to
the crm, now it just seems to import the lead but the workflows are not
triggered and any items after the "$lead->save("Leads");" are not completed.
Any idea what has changed?

 

require_once('config.php');

require_once('modules/Leads/Leads.php');

require_once('include/database/PearDatabase.php');

require_once('include/utils/utils.php');

require_once('include/language/en_us.lang.php');

require_once('include/ComboStrings.php');

 

$lead = new Leads();

        $lead->column_fields["firstname"] = $firstname;

        $lead->column_fields["lastname"] = $lastname;

        $lead->column_fields["assigned_user_id"] = '1';

        $lead->column_fields["phone"] = $phone;

        $lead->column_fields["lane"] = $street;

        $lead->column_fields["city"] = $city;

        $lead->save("Leads");

 

 

I also have to use an older version of the Leads.php file to make it work.

 

Any help would be greatly apprecieted.

 

Thanks 

 

Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141015/4351620c/attachment.html>


More information about the vtigercrm-developers mailing list