Pre-populate Table Data¶
Default data can be defined for a table. For example, let’s say that we need a officeLocations
table with some pre-populated data:
key: officeLocations
type: table
name: Office Locations
itemName: Office Location
summary:
title: "{{name}}"
fields:
name:
type: text
label: Name
address:
type: address
label: Office Address
data:
ny1:
name: New York Office
address:
country: US
state: NY
city: New York
address: 555 Street
sf1:
name: San Francisco Office
address:
country: US
state: CA
city: San Francisco
address: 555 Street
When the process is published, the data will be inserted or updated, without modifying other data that has been entered into the table.