Navision (export)

Modified on Thu, 5 Nov at 12:01 PM

How the export works

With the Navision export, Project Flow creates a file with your finalized invoices and credit notes, which you import into Microsoft Dynamics NAV (Navision) as sales invoices and credit memos. It is a file export, not a live connection.

  • Invoices with their lines. Each invoice is exported with a header and all its invoice lines, with quantity, unit price and discount. NAV calculates the amounts, VAT and postings from its own setup.
  • Lines as items or resources. Lines for a co-worker's hours can be sent as NAV Resource lines; other lines are sent as Item lines.
  • One direction. Nothing comes back from NAV, neither payments nor expenses.
  • Business Central? For Microsoft Dynamics 365 Business Central, use the Business Central integration instead, which is a live connection.



Set up the export

Step 1: Add the integration

  1. Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
  2. Click + Create integration and choose Navision.
  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: Navision settings

Field (EN / NB)Description
Custom field for Resource / Tilleggsfelt for ResourceA custom field on co-workers that holds each co-worker's Resource No. in NAV. Invoice lines for a co-worker who has a value in this field are exported as Resource lines. Required.

Create the custom field for co-workers first (for example NAV resource number), and fill it in on the co-workers who are resources in NAV.


Step 3: How and when the file is sent

Field (EN / NB)Description
Default invoice issue date limit / Standard sluttdato for fakturaeksportWhich 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 access / Definer tilgangOnly for manual transfer. Limit who may run the export, by access role or coworker.


Step 4: Prepare Project Flow and NAV

  • Customers must exist in NAV with the same customer number as in Project Flow. Customers aren't created by the file.
  • Items: for Item lines, the line text from Project Flow is sent as the item. NAV must be able to match it, so agree with your NAV partner how these lines are imported.
  • Resources: only invoice lines that belong to a co-worker can be Resource lines. That is the case when the hours on the invoice are grouped by co-worker. Lines grouped otherwise are exported as Item lines.
  • Accounts, VAT and dimensions aren't in the file. NAV sets them from the customer, item and resource setup.



Run the export

  1. When there are invoices to export, Export to accounting (N) (Eksport til regnskap) 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 a link to the file. With Download folder, it is downloaded right away.
  • What is included: finalized invoices and credit notes that haven't been exported yet, up to the date you choose.
  • 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 back to To transfer, and run the export again.
  • Earlier files: in the invoice overview, open the cog menu and choose Exported files (Eksporterte filer).
  • Continuous transfer: with FTP or HTTP and Continuously, each invoice is sent when it is finalized, and the menu item doesn't appear.



The file

  • A .csv file named {company}-{id}-to-{date}-at-{time}-navisio.csv.
  • Separated by commas, every value in double quotes, without a header row. Windows line breaks.
  • Encoding ISO-8859-1.
  • Dates as DD.MM.YY. Numbers with a period as decimal separator.
  • Two blocks: first one header row per invoice, then an empty line, then one row per invoice line.


Invoice headers

#Content
1Document type: Invoice, or Credit Memo for credit notes
2Invoice number
3Order date (the invoice date)
4Posting date (the invoice date)
5Customer number
6Customer name
7Address line 1
8City
9Postal code

Note that the city comes before the postal code.


Invoice lines

#Content
1Document type: Invoice or Credit Memo
2Invoice number
3Line number: 10000, 20000, 30000 …
4Type: Resource or Item
5For Resource: the co-worker's resource number. For Item: the line text.
6Quantity, always positive
7Unit price
8Discount in percent, or empty

Example:

"Invoice","123456","01.10.26","01.10.26","10045","Customer AS","Storgata 1","Oslo","0155"

"Invoice","123456","10000","Resource","2016","5","1000.00","5.0"
"Invoice","123456","20000","Item","Screwdriver","5","100.00","10.0"

  • Credit notes are Credit Memo, with the quantity as a positive number.
  • Not in the file: accounts, VAT, amounts and totals, currency, due date, KID, department, project and rounding.



Q&A

Q: Hour lines are exported as Item, not Resource.

A: Check that the co-worker has a resource number in the custom field, and that the hours on the invoice are grouped by co-worker. Lines that don't belong to one co-worker are always Item lines.

Q: The amounts or VAT in NAV differ from Project Flow.

A: The file has quantity, unit price and discount, and NAV calculates the rest. Check the VAT and posting setup on the customer, item and resource in NAV.

Q: A line with a negative quantity became positive in NAV.

A: Quantities are always exported as positive numbers; the document type tells NAV whether it is an invoice or a credit memo. For a deduction on an invoice, use a negative unit price instead of a negative quantity.

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: 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