The DevXP engineering team hosts office hours every Thursday at 11 a.m.
Pacific Time where we answer your questions live and help you get up and
running with Flatfile. Join
us!
Before you begin
Get your keys
To complete this tutorial, you'll need to retrieve your Publishable key from yourdevelopment
environment.
Note: The Publishable Key is safe to be used in client-side applications as it
has limited access to the Flatfile API.
Prepare your project
Follow prompts from thenew
command.
Build your importer
1. Initialize Flatfile
In yourapp.component.ts
you’ll need to pass in a minimum of the publishableKey
.
2. Build a Workbook
Now, let’s build a Workbook inside the Space for next time.- Update your
blueprint.js
with this simple Blueprint. - Update
app.component
to import the Workbook.
4. Set the destination
Finally, let’s get the data out of our system and to your destination withonSubmit
.
Once you add this code, when the submit button is clicked, this will be the place you can egress your data. Learn more about Egress Out
app/app.component.ts
5. Transform Data
Next, we’ll listen for data changes and respondonRecordHook
,
Once you add this code, when a change occurs, we’ll log the entered first name and update the last name to “Rock.” You’ll immediately see this begin to work when you add or update any records. Learn more about Handling Data
app/app.component.ts
6. Match your brand
By attaching athemeConfig
, we will now override colors in your Space to match your brand. See all of the options here in the Theming Reference.
app/app.component.ts