Connect Feishu Multidimensional Spreadsheet to Database and Build a Visual Dashboard

Feishu multidimensional spreadsheets now support database connections. You can push data collected by CaoLiao into Feishu multidimensional spreadsheets and freely use that data to build the dashboards you need.

Feishu Multidimensional Spreadsheet Pricing: Includes a one-month free trial. The free version supports only 3 data tables with a sync limit of 1,000 rows. Upgrade to the advanced version (¥2,499/year) or the enterprise version (¥5,499/year) if needed. file

Data from different forms can all be linked into the same Feishu multidimensional spreadsheet to build a unified dashboard.

Example Dashboard​

Quickly view equipment inspection status — including inspection counts, device states, and monthly summaries: View example

file

Before You Begin​

Data API Overview​

CaoLiao provides an official database feature. QR code data, form data, status and plan data on the CaoLiao platform are synced in real time to the official database. External tools can connect to this database to pull data and build the dashboards you want. View official database documentation

API data is only pushed based on the features you have configured in CaoLiao. For example: if you've set up the status feature, code_state (QR code status data) will be pushed; if you've created and started a plan, code_task_log (plan execution data) will be pushed. Data is not pushed for features that haven't been set up or have no data.

We recommend waiting until your QR codes have data before building visual dashboards.

Feishu Multidimensional Spreadsheet​

Feishu multidimensional spreadsheets support syncing data from MySQL databases. Feishu Multidimensional Spreadsheet overview file

Tutorial​

Step 1: Enable CaoLiao's Official Database​

  1. Log in to the CaoLiao workbench, click [Data Management] → [Data API] on the left, and select [official database] to apply: Go to official database file
  2. After activation, you will receive connection info similar to the following (use your actual credentials):
    • Type: MySQL 5.7
    • Host: rm-bp1m4fy8d66u3c6xmbo.mysql.rds.aliyuncs.com
    • Port: 3306
    • Database name: cli_13268724 (example)
    • Username: cli_13268724 (example)
    • Password: ekiji17jd02jk9md (example)

Step 2: Download Feishu and Connect the Multidimensional Spreadsheet to the Database​

  1. Open the workbench and create a new multidimensional table
    file file file
  2. Select "Sync from another data source" and choose MySQL
    file file
  3. Enter the CaoLiao official database credentials
    In the connection wizard, enter the database host, port, database name, username, and password from the previous step to establish the connection. A 30-day free trial is available. file file

Step 3: Add Data Tables​

Select the data tables you need and add them. Once added, data from the CaoLiao platform will be displayed. CaoLiao uses a standardized naming convention for its tables — review the table descriptions before proceeding. View data table documentation

file

Common Table Descriptions​

  1. base_codeinfo
    • QR code basic info table.
    • Automatically pushed when your account has QR code data. Includes basic info for dynamic QR codes and bulk sub-codes. file file
  2. template_codeinfo_XXX
    • Bulk template sub-code info table.
    • Naming convention: template_codeinfo_DXX, where DXX is the bulk template number.
    • For example: if the bulk template number in the workbench is M4, the corresponding table name is template_codeinfo_D4.
    • This table contains the variable content for each sub-code. file file file
  3. code_state
    • QR code status table.
    • Pushed when a QR code has associated statuses. file file
  4. code_task_log
    • Plan execution log table.
    • Pushed when a plan has been created and started in your account.
    • After the database is activated, only plan cycle data for cycles that start executing after activation is pushed. Historical cycles and the cycle currently in progress at activation are not pushed. file file
  5. table_dXX
    • Form data detail table.
    • Pushed when form data is submitted in your account.
    • Naming convention: starts with table_, followed by dXX where XX is the form's unique number. For example, table_d45 corresponds to the form with number 45. file file file

Step 4: Create Charts​

Feishu multidimensional tables support chart creation. Click [Dashboard], then use bar charts, line charts, column charts, pie charts, and other visualization types to complete your dashboard design. file

Here are some common statistical examples:

Example 1: Count Totals​

  1. Select the [Stat Number] component;
  2. Select template_codeinfo_XXX (bulk template sub-code info table);
  3. Count the total number of QR codes under the current template — this gives you the total fire extinguisher count. file

Example 2: Count Inspection Runs​

  1. Select the [Stat Number] component;
  2. Select table_dXX (form data detail table) and count the total number of submitted records;
  3. Each form submission represents one completed inspection — the total record count equals the total number of inspections. file
  • Line chart:
    Use the table_dXX form data detail table, grouped by record time, to view inspection trends over time. file
  • Bar chart:
    Use the table_dXX form data detail table, grouped by "Recorder", to view inspection counts per inspector. file

Example 3: Normal vs. Abnormal Status Distribution​

  1. In the template_codeinfo_XXX table, [Add field] → [Lookup reference] → code_state (QR code status table) file
  2. Select the status field to reference from the code_state table. Both tables contain code_id, so after linking you can retrieve the status info for each sub-code. file
  3. Add a pie chart and select the status field you want to analyze in the grouping configuration. file
  4. Click a slice of the pie chart to see detailed records. file

Example 4: Plan Completion Rate​

  1. In code_task_log (plan execution log), [Add field] → [Lookup reference] → template_codeinfo_XXX file
  2. Select the variable field from template_codeinfo_XXX to reference, and use code_id for the relationship. file file
  3. Add a pie chart, filter by date and status to see plan completion for a specified period. file file file

Summary​

With the steps above, you can sync multi-source data from CaoLiao (QR codes, forms, statuses, plans, and more) into Feishu multidimensional spreadsheets in real time, and flexibly build visual charts and dashboards to meet a wide range of business analytics needs.
For more help, see:

Tip: Since data pushed to the CaoLiao database depends on your actual usage, we recommend waiting until your QR codes have generated data before building visual dashboards — this ensures the information you see is complete and up to date.