Visma Scenario (export)

Modified on Thu, 5 Nov at 12:01 PM

How the export works

With the Visma Scenario export, Project Flow creates a text file with your finalized invoices and credit notes, in Visma Scenario's import format, which you import into Visma Scenario. It is a file export, not a live connection.

  • One line per invoice. Each invoice or credit note is one line with the invoice number, dates, the total amount including VAT, the KID and the customer's name and address.
  • No accounts or VAT lines. The account, ledger, department and project fields are empty or zero, and the VAT code is always 3. Visma Scenario posts the invoice from its own setup.
  • Only invoices. Customers and projects aren't exported, and nothing comes back from Visma Scenario.



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 Visma Scenario.
  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.

There are no Visma Scenario settings of their own, only 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 2: Prepare Project Flow

  • Invoice numbers can have at most 8 digits for the voucher number.
  • Customer names and addresses are cut to the field length (35 characters for name and address lines). Long values lose their beginning, not their end.
  • Currency: the amount is in the invoice currency, and no currency code is sent. Use the export for invoices in your company currency.



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 .txt file named {company}-{id}-to-{date}-at-{time}-vismaSc.txt.
  • Separated by commas, without a header row. Windows line breaks. Encoding ISO-8859-1.
  • Numbers are filled with leading zeros, without quotes.
  • Texts are in double quotes, filled with leading spaces to the field length (right-aligned).
  • Dates as YYYYMMDD. Amounts in øre, without decimal separator.
#FieldContent
1Batch number00000
2YearYear of the invoice's period start
3PeriodMonth of the invoice's period start
4Voucher numberInvoice number (8 digits)
5Voucher dateInvoice date
6Due dateDue date
7Debit account00000000
8Debit VAT code"3"
9–12Debit department, project, object, activityEmpty
13Credit account00000000
14Credit ledger000000000000
15Credit VAT code"3"
16–19Credit department, project, object, activityEmpty
20Post numberInvoice number (10 digits)
21Document type"01" invoice, "02" credit note
22TextEmpty
23AmountTotal including VAT, after rounding, in øre (12 digits). Negative for credit notes.
24CountZeros
25Currency amountZeros
26Currency codeEmpty
27Payment IDThe invoice's KID
28Journal number00000
29Customer nameCustomer name (35)
30–32Customer address 1–3The invoice's customer address (35 each)
33Customer zip codePostal code (8)
34Customer placePostal place (27)
35Organization numberThe customer's organization number (22)

Check the import layout. The file has no Debit ledger field between the debit account and the debit VAT code, and it has the organization number as the last field. Set up the import in Visma Scenario to match the fields above, and contact Project Flow support if Visma Scenario can't read the file.



Q&A

Q: The invoices have no accounts or VAT in Visma Scenario.

A: The file only has the invoice total, with VAT code 3. Accounts and VAT are set in Visma Scenario.

Q: Visma Scenario reads the fields in the wrong place.

A: The file has one field less than Visma Scenario's standard layout after the debit account, and one more at the end. See The file, and contact Project Flow support.

Q: The customer name or address is cut at the beginning.

A: Values longer than the field are cut from the left. Shorten them in Project Flow.

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