Google搜索

浏览存档

« 八月 2008  
周日 周一 周二 周三 周四 周五 周六
          1 2
3 5 6 7 8 9
10 11 12 13 14 15 16
17 19 20 21 22 23
24 25 26 27 28 29 30
31            

用户登录

最新评论

在线用户

当前共有 0 users 和 3 guests 在线。

订阅到RSS阅读器

Syndicate content

转载:Howto integrate 3rd-party software with SugarCRM - Part 1

Written by dfar2008  in  |   2006 七月 02 , 星期日 12:22

This series discusses the various means of integrating 3rd-party software, open source or not, with the well-known “commercial open source” CRM-Software SugarCRM. The first part describes the most basic integration by simply sharing database access.

In a lot of projects, no tight integration of your software with SugarCRM is needed - you only want to access the data, most of the times readonly, but also have the possibility to make changes. No UI needed, or no UI which is integrated into SugarCRM. For those cases it might be a good solution to simply share database with Sugar. ODBC, OLEDB as well as JDBC and Perl::DB drivers are available for free to access the mysql database. SugarCRMs table structure is rather easy to understand: 

There are “data” tables, “link” tables and some helper and config tables. All of the “data” tables have a set of common fields:

  • “id” - holds the unique id of the object
  • “date_entered” - original creation data

it makes no sense for itself - the interesting part in the link-tables are the additional fields, which link to the related objects. They are called like “object-name_id”, for example “account_id” and “contact_id” in the link table “account_contacts”.

This is an example query which lists all contact names with associated account name:

select c.first_name, c.last_name, a.name from contacts c, accounts_contacts ac, accounts a where c.deleted != 1 and ac.deleted != 1 and a.deleted != 1 and c.id = ac.contact_id and ac.account_id = a.id order by a.name, c.last_name

Using this query and an the MySQL ODBC driver (available here: http://dev.mysql.com/downloads/connector/odbc/) it is possible to do a mail merge with Microsoft Word, or even to perform calculations and build charts with Microsoft Excel. Some examples on how to do this are available in the ZuckerReports project at SugarForge: http://www.sugarforge.org/projects/zuckerreports/

注:这篇文章是ftreml所写,另外感谢他把C3CRM开发的模块改成兼容SugarCRM的新版本和支持英文,并与非中文国家的用户分享,在此表示感谢。

Last Updated (2006 七月 02 , 星期日 12:31)