[Vtigercrm-developers] change to lead delivery?

Prasad prasad at vtiger.com
Thu Oct 16 03:22:47 GMT 2014


Alex,

I would suggest the use of Sever APIs
<http://community.vtiger.com/help/vtigercrm/developers/server-apis.html>
(if its from other app - refer here
<http://community.vtiger.com/help/vtigercrm/developers/third-party-app-integration.html>)
for CRUD operation.

*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook
<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* Blog
<https://blogs.vtiger.com/>* I* Wiki
<http://wiki.vtiger.com/vtiger6/index.php/Main_Page> *I* Website
<https://www.vtiger.com/>

On Thu, Oct 16, 2014 at 3:04 AM, Alex Martin <alex at theclearsource.com>
wrote:

> 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
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141016/d312e983/attachment-0001.html>


More information about the vtigercrm-developers mailing list