Dear Lucy supports integration to MySQL, Microsoft SQL Server, Microsoft SQL Azure and PostgreSQL
In order to use Dear Lucy's sales dashboards through a database integration, all you need to do is to structure your sales data in a specific format (see example in attachment) and authenticate access for Dear Lucy to your database.
The data structure has been developed so that it works seamlessly with Dear Lucy's sales dashboards. In other words, providing Dear Lucy with the data in this format will provide you with 30+ sales and sales activities KPIs in 6 different sales dashboards almost instantly.
There are three main concepts in an integration: fetching the initial data, mapping it to the correct schema in Dear Lucy and keeping it up-to-date.
Each row in a database is an independent unit of data, other rows do not affect how it is interpreted.
Initial data is fetched from the beginning of the previous year up to the current date. There should be a way to retrieve this range of data when needed, eg. if there have been significant changes to the contents of the data that require all of it to be re-imported.
Updates to Existing Data
Each unit of data should have a unique ID so that it can be updated with new information when needed. There should be a method to fetch the latest changes to data.
Deletion of Existing Data
Deleted data in the source system should also be marked as deleted in the transferred data. This should use the same unique ID which is used to update existing data.
|id text PRIMARY KEY,||active boolean,|
|close_date date,||business_unit text,|
|expected_value real,||competitor text,|
|name text,||country text,|
|open_date date,||customer text,|
|probability real,||customer_type text,|
|state text (funnel state),||deal_type text,|
|status text (won, lost, open),||lead_source text,|
|value real,||product text,|
|sales_person text,||region text,|
|updated_at timestamp,||sales_person text,|
|updated_at timestamp without time zone,|
|mrr value real|
|id text PRIMARY KEY,||company text,|
|active boolean,||owner_id text,|
|completed_date date,||source text,|
|created_date date,||business_unit text,|
|date date,||category text,|
|description text,||contact text,|
Integrate your database with Dear Lucy
Once your sales data is structured in the required format (see format example in attachment) you'll need to integrate it to your dashboards to see your data. Please follow the steps below and see the next article in this section to complete the integration:
1. Open up your database to the following IP addresses: 184.108.40.206, 220.127.116.11, 18.104.22.168 and 22.214.171.124. The Dear Lucy integration service runs in AWS.
2. Within your Dear Lucy account, access the Settings menu (the cogwheel) and navigate to Integrations > + Add New Integration.
3. Scroll down to the list of SQL server icons and select the Server in which your Database is located by clicking the Connect button that appears when holding your mouse over the icon.
4. When clicking Connect, a pop-up window will appear (see image) asking you to add the following credentials to access the database:
i. Host: This is the URL or IP address where the database is located.
ii. Username: The username that can access the database. In most cases a new user will be made for Dear Lucy that have the necessary access and privileges to the database and tables.
iii. Password: This is the password for the User that have access to the database.
iv. Database: This is the name of the database within the server where the Sales_cases and Sales_activities tables are located. Often, a database for integrations may already be in place, called e.g. "Shared" or similar. If not, we recommend creating a database for "Dearlucy".
v. Table: The name of the table that has the sales or sales activities data. We recommend naming the tables Sales_cases and Sales_activities,
5. Press Connect to authenticate and complete the integration and Sales or Sales activities dashboards will start working instantly.
Please note that you are only able to integrate one table at a time. In other words, if you have integrated your Sales_cases table, you need to repeat the steps above if you also wish to integrate Sales_activities.