Test data
A small, fictional dataset so you can follow every guide with realistic results. Everything is made up: names, companies, addresses and contact data are not real (the domains end in .example).
What is in it
companies.csv10 companies, incl. a holding with two subsidiaries (parentRef) people.csv20 people with salutation, title, address and contacts employments.csv21 employments with role and status groups.csv4 groups: Key accounts, Newsletter, Hamburg region, Energy sector group-members.csv18 memberships of companies and people in groups insights-orders.csv60 web shop orders (semicolon separated) insights-sensor-readings.csv80 temperature/humidity readings from 4 devices (semicolon separated) rabbitmq-sensor-messages.jsonlThe same 80 readings as JSON messages, for the [RabbitMQ source](/docs/guides/concepts/rabbitmq-source)Rows link to each other through a ref column (C-001, P-007, …). Scenid assigns the real humanId when a record is created, so the import scripts keep a ref → humanId map.
Companies
| Column | Meaning |
|---|---|
ref | Local key (C-001) |
name, ouType, legalForm | Fields accepted on create. legalForm uses catalog keys such as gmbh, ag, kg, ug, eg |
parentRef | Local key of the parent company, empty for top level |
street … countryCode | Address (DE = Germany) |
lon, lat | Coordinates, for map screenshots. Scenid derives location from the address, the scripts do not send them |
website, openingHours, email, phone | Contact details |
People
salutation is one of formal-neutral, personal-neutral, formal-female, formal-male. title is optional (for example Dr., Prof. Dr.). birthDate is ISO YYYY-MM-DD.
Employments and roles
role is free text; the catalog knows ceo and employee. status is active, paused, separated, retired or inactive.
Insights files
Insights files use ; as separator because that is what the Insights CSV import expects.
| File | Columns |
|---|---|
insights-orders.csv | orderId; orderedAt; country; category; product; quantity; unitPrice; total; status; paymentMethod; newCustomer |
insights-sensor-readings.csv | timestamp; deviceId; site; temperature; humidity; batteryPct; location; alarm |
Recommended field types when you create the sources:
| Field | Type |
|---|---|
orderId, country, category, product, status, paymentMethod, deviceId, site | string |
orderedAt, timestamp | date-iso |
quantity, batteryPct | integer |
unitPrice, total, temperature, humidity | float |
newCustomer, alarm | boolean |
location | geo-point ("lat,lon" string) |
Load it with the import scripts
Download the scripts, then install the SDK next to them:
Keep the folder layout of testdata/ (the CSV files one level above scripts/).
Customers
cd scripts
yarn add @scenid/cloud-sdk
node import-customers.mjs ../../service-key.json
The script creates companies (parents first), people, employments and groups, then writes testdata-state.json with all created humanIds. Remove everything again with:
node delete-customers.mjs ../../service-key.json
Insights
- In the Insights app, create a store source for each file (
Orders,Sensor readings) and set the field types from the table above. Set the document ID to Field (orderIdfor orders) before importing, so a second import updates instead of duplicating. See the Insights import guide. - Run the import:
node import-insights.mjs ../../service-key.json "Orders" ../insights-orders.csv
node import-insights.mjs ../../service-key.json "Sensor readings" ../insights-sensor-readings.csv
Or upload the files in the Insights source wizard instead of using the script.
Running import-customers.mjs twice creates every record twice. Run delete-customers.mjs first if you want a clean slate. Insights imports are safe to repeat when the source's document ID is set to a field (orderId for the orders).