转载:Howto integrate 3rd-party software with SugarCRM - Part 1
Written by dfar2008 in C3CRM | SugarCRM 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
最新评论
8 weeks 6 days 前
9 weeks 18 hours 前
10 weeks 4 days 前
10 weeks 6 days 前
14 weeks 1 day 前
14 weeks 1 day 前
16 weeks 19 hours 前
16 weeks 1 day 前
22 weeks 2 days 前
23 weeks 1 day 前