Microsoft Dynamics C5 (export)

Modified on Thu, 5 Nov at 12:03 PM

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

  1. Go to Setup → Settings → Integrations (Opsætning → Indstillinger → Integrationer) and switch to the tab Export to file (Eksporter til fil). You need administrator access.
  2. Click + Create integration and choose Microsoft Dynamics C5.
  3. 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 / KunderThe code written first on every customer row, so C5 knows the row is a customer. Default 10. Required.
Invoices code / FakturaerThe 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 fakturaudstedelseWhich 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 tilDownload folder (default), Email, FTP / FTPS (also SFTP) or HTTP / HTTPS.
Transfer filesOnly for FTP and HTTP. Manually (default), or Continuously (after each invoice finalization).
Define accessOnly 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

  1. 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.
  2. Click it, check the invoices to be exported, and choose a To date if your date limit allows it.
  3. 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 .csv file, 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 fieldContent
1Line typeThe Customers code (default 10)
2AccountCustomer number
3NameCustomer name
4Name 2Empty
5AddressFirst address line of the customer's main address
6Zip code / cityPostal code and place
7CountryCountry code, for example DK
8Group1
9PaymentThe customer's credit days followed by dg, for example 30dg
10–11Attention, mobileEmpty
12E-mailCustomer e-mail
13EANThe customer's e-invoicing address, if it is a GLN/EAN number
14VAT2
15Approved1
16CurrencyDKK
17LanguageStandard
18VAT typeDK:CVR
19VAT numberThe customer's organization number (CVR)


Invoice rows

For each invoice:

  • One F row 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 D row for the customer, with the invoice total including VAT.
#F row (account)D row (customer)
1The Invoices code (default 20)
2Invoice date
3Invoice number
4"F""D"
5Bookkeeping account numberCustomer number
6Empty
7Amount (invoice)Amount (credit note)
8Amount (credit note)Amount (invoice)
92Empty
10"{invoice number}-{project number}"
11–14Empty

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article