A Celigo integration that turns CSV files on an FTP server into NetSuite journal entries.
Every accounting team knows the monthly ritual: a CSV arrives from another system, someone opens it in a spreadsheet, rearranges the columns, adds the accounts, checks the totals and imports it into the ledger. It takes hours, it depends on one person remembering the steps, and a single mistake ends up in the books. This project replaced that ritual with an integration.
The challenge
Accounting data often arrives as CSV files that do not match NetSuite’s journal entry structure, so someone has to reshape and import them every period.
The core difficulty is that a CSV row is rarely a journal entry. A journal entry is a header with several lines whose debits and credits must balance, each line pointing at an account, and often a department, class or subsidiary. The file, meanwhile, is laid out for whoever produced it. Bridging the two means restructuring — grouping rows, splitting amounts, deciding which side is a debit — not just mapping columns.
How it works
- Collect the files. Created the FTP connection and pulled the CSV files from the server.
- Restructure the data. Restructured the CSV rows into NetSuite journal entry lines.
- Custom mapping logic. Used Handlebars (HBS) in the mapping for logic the standard mapper could not express.
- Post journal entries. Created the Journal Entries in NetSuite.
Design decisions
Restructure before mapping
The CSV rows are first restructured into journal entry lines, so the mapping step works with data that already looks like a journal entry. Separating “reshape” from “map” keeps each step simple and makes it much easier to see where a problem comes from.
Handlebars for the logic the mapper can’t express
Celigo’s mapper handles straight field-to-field copies well. For conditional logic — choosing a value based on another field, formatting, combining columns — the integration uses Handlebars (HBS) templates inside the mapping. It keeps that logic next to the field it affects, rather than in a separate script, which is easier for the next person to follow.
Automated, consistent posting
Once the files are collected from the FTP server, the journal entries are created in NetSuite automatically. The same rules apply every time, regardless of who is on holiday — which is, in the end, the main benefit for an accounting team.
Highlights
- Handlebars templates for custom mapping logic.
- File-to-ledger automation with no manual import.
Things that matter in an integration like this
- Validate that each entry balances before sending it, so errors are clear and early.
- Decide what happens to processed files — archiving them keeps an audit trail and prevents double posting.
- Watch the posting period. Entries for a closed period will be rejected; agree how late files should be handled.
- Prefer SFTP over plain FTP when the partner supports it — FTP sends credentials and data unencrypted. See Connect SFTP with password authentication for the reasoning.
The result
Journal entries from files post to NetSuite automatically and consistently.
At a glance
| Built with | Celigo, Handlebars |
|---|---|
| Systems | FTP → NetSuite |
| Data | CSV |
| NetSuite record | Journal Entries |
Related reading
- Celigo integration consultant — Celigo flows, mappings and hooks
- NetSuite ERP consultant — journal entries and finance integrations
- Automating the Research Fund Collection — a file-driven financial lifecycle built in Boomi
Still importing accounting files by hand every period? Get in touch.

