Data import and sync

A summary on importing data and keeping it up to date

What is data import and sync?

This function enables developers to take data from an external data source and pull it into Lucid.
This can be done by:

  1. Hitting a third-party API and manually retrieving data.
  2. Setting up data connectors, which automatically pull data from third-party APIs.

Data import

What can data import and sync do?

  1. It can automatically pull data from external data sources to update properties of any Lucid element that can be data linked (shapes, lines, groups, or pages). Such properties include text, color, and more.

Data Sync

  1. Any changes made to the data in Lucid will reflect back in the external data source. Pushing updates back to the external source can be made automatic or designed to appear to the user in stages or batches.

Push Back

How does data import and sync work?

Data import and sync relies on Lucid's Extension API, and uses:

  1. Editor Extensions to manage how data appears and acts on Lucid documents.
  2. (Optionally) Data Connectors to automatically fetch changes made in third party systems, and to automatically push changes made in Lucid back to third party systems.
  3. (Optionally) Shape Libraries to create custom shapes for displaying data.

You can step through the entire process of building a data import and sync cards integration here.

What are the limitations of data import and sync?

  1. Data imported via extensions does not currently work with Lucid's out-of-the-box solution for org charts or timelines. Nevertheless, it's possible for the extension to manually construct such objects.
  2. It's easy to work with data that can be represented tabularly. However, data formats that are not efficiently represented tabularly will be more difficult to work with due the the way Lucid stores data on the document.

What’s Next

Examples of data import and sync implementations