How the export works
With the Microsoft Dynamics C5 export, Project Flow creates a file with your finalized invoices and credit notes, and the customers on them, which you import into Dynamics C5. It is a file export, not a live connection.
- One file with both customers and invoices. The first column on each row tells C5 what kind of row it is.
- Invoices only go one way. Nothing comes back from C5, neither payments nor expenses.
- Totals per account. The file has one line per bookkeeping account on the invoice and one line for the customer, not the individual invoice lines.
Set up the export
Step 1: Add the integration
- Go to Setup → Settings → Integrations (Opsætning → Indstillinger → Integrationer) and switch to the tab Export to file (Eksporter til fil). You need administrator access.
- Click + Create integration and choose Microsoft Dynamics C5.
- Fill in the fields below, tick Enabled and save.
Project Flow plan. The export isn't available on the Start plan. If it has a monthly cost, the form shows it.
Step 2: C5 settings
| Field (EN / DA) | Description |
|---|---|
| Customers code / Kunder | The code written first on every customer row, so C5 knows the row is a customer. Default 10. Required. |
| Invoices code / Fakturaer | The code written first on every invoice row. Default 20. Required. |
Use the codes your C5 import is set up with.
Step 3: How and when the file is sent
| Field (EN / DA) | Description |
|---|---|
| Default invoice issue date limit / Standard datogrænse for fakturaudstedelse | Which invoices are included, by invoice date: Up to and including last day of previous month, Current date, or No limitations on date (everything that hasn't been exported yet) (default). |
| Send data to / Send data til | Download folder (default), Email, FTP / FTPS (also SFTP) or HTTP / HTTPS. |
| Transfer files | Only for FTP and HTTP. Manually (default), or Continuously (after each invoice finalization). |
| Define access | Only for manual transfer. Limit who may run the export, by access role or coworker. |
Step 4: Prepare Project Flow
- Bookkeeping accounts: every invoice line needs a bookkeeping account, with the same account number as in C5.
- Customers: customer numbers must match the debtor accounts in C5. Don't use
;in names, addresses or e-mail addresses, as it moves the columns in the file. - Projects: the project number is part of the posting text. Invoices without a project get the text "{invoice number}-null".
- Currency: the export is meant for invoices in DKK. See Currency below.
Run the export
- When there are invoices to export, Export to accounting (N) (Eksport til regnskab) appears in the notifications menu (the bell). You need permission to edit invoices, and must be on the access list if one is defined.
- Click it, check the invoices to be exported, and choose a To date if your date limit allows it.
- Click Export. You get "Data export succeeded" with a link to the file. With Download folder, the file is downloaded right away.
- What is included: finalized invoices and credit notes that haven't been exported yet, up to the date you choose, in invoice-number order.
- After the export: the invoices get the export status Has been transferred.
- Export again: in the invoice overview, open the cog menu, choose Edit export status (Rediger eksportstatus), set the invoices (from–to invoice number) back to To transfer, and run the export again.
- Earlier files: in the invoice overview, open the cog menu and choose Exported files.
- Continuous transfer: with FTP or HTTP and Continuously, each invoice is sent in its own file when it is finalized, and the menu item doesn't appear.
The file
- A
.csvfile, separated by semicolons, without a header row. - Encoding UTF-8.
- Dates as
YYYY-MM-DD, amounts with 2 decimals and a period as decimal separator. - The file name ends with
-c5.csv. - First all the customer rows, then the invoice rows.
Customer rows
One row for each customer on the exported invoices. The customers are written in every file, also if they were exported before.
| # | C5 field | Content |
|---|---|---|
| 1 | Line type | The Customers code (default 10) |
| 2 | Account | Customer number |
| 3 | Name | Customer name |
| 4 | Name 2 | Empty |
| 5 | Address | First address line of the customer's main address |
| 6 | Zip code / city | Postal code and place |
| 7 | Country | Country code, for example DK |
| 8 | Group | 1 |
| 9 | Payment | The customer's credit days followed by dg, for example 30dg |
| 10–11 | Attention, mobile | Empty |
| 12 | Customer e-mail | |
| 13 | EAN | The customer's e-invoicing address, if it is a GLN/EAN number |
| 14 | VAT | 2 |
| 15 | Approved | 1 |
| 16 | Currency | DKK |
| 17 | Language | Standard |
| 18 | VAT type | DK:CVR |
| 19 | VAT number | The customer's organization number (CVR) |
Invoice rows
For each invoice:
- One
Frow per bookkeeping account used on the invoice, with the amount including VAT for that account. Accounts that add up to 0 are left out. - One
Drow for the customer, with the invoice total including VAT.
| # | F row (account) | D row (customer) |
|---|---|---|
| 1 | The Invoices code (default 20) | |
| 2 | Invoice date | |
| 3 | Invoice number | |
| 4 | "F" | "D" |
| 5 | Bookkeeping account number | Customer number |
| 6 | Empty | |
| 7 | Amount (invoice) | Amount (credit note) |
| 8 | Amount (credit note) | Amount (invoice) |
| 9 | 2 | Empty |
| 10 | "{invoice number}-{project number}" | |
| 11–14 | Empty | |
Credit notes use the same rows, with the amounts in the other column. Amounts are always written without a minus sign.
Example of an invoice with two accounts:
20;2026-10-01;1442;"F";1150;;200.00;;2;"1442-19728";;;;20;2026-10-01;1442;"F";1160;;250.00;;2;"1442-19728";;;;20;2026-10-01;1442;"D";2826;;;450.00;;"1442-19728";;;;
Not in the file
- VAT as a separate line. VAT is included in each account's amount, and C5 splits it out.
- Due date, KID, department, invoice text, item lines, the PDF and attachments.
- Rounding. The customer amount is the sum of the account amounts, so it can differ by a few øre from a rounded invoice total.
- Currency. Amounts are written in the invoice currency, without conversion, and the customer row always says
DKK.
Q&A
Q: The export fails with "Failed to export data due to an unexpected error."
A: The usual reason is an invoice line without a bookkeeping account. Add an account on the product or activity, or set the invoice to Do not transfer to accounting, and export again. If that isn't it, contact Project Flow support.
Q: "There are no invoices to export in the specified period."
A: All finalized invoices up to the date are already exported. Choose a later date, or set invoices back to To transfer with Edit export status.
Q: C5 can't read the file: the columns are shifted.
A: Check the customer names, addresses and e-mail addresses for a semicolon (;), and remove it.
Q: Why is VAT not on its own line?
A: The account amounts include VAT, and the VAT code column is 2. Check that your accounts and VAT setup in C5 handle this.
Q: The posting text says "…-null".
A: The invoice has no project. The text is invoice number and project number.
Q: I need to export an invoice again.
A: Set its export status back to To transfer with Edit export status, and run the export again. Or download the earlier file from Exported files.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article