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
- Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
- Click + Create integration and choose Visma Scenario.
- 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 fakturaeksport | 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 / Definer tilgang | Only 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
- 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.
- Click it, check the invoices to be exported, and choose a To date if your date limit allows it.
- 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
.txtfile 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.
| # | Field | Content |
|---|---|---|
| 1 | Batch number | 00000 |
| 2 | Year | Year of the invoice's period start |
| 3 | Period | Month of the invoice's period start |
| 4 | Voucher number | Invoice number (8 digits) |
| 5 | Voucher date | Invoice date |
| 6 | Due date | Due date |
| 7 | Debit account | 00000000 |
| 8 | Debit VAT code | "3" |
| 9–12 | Debit department, project, object, activity | Empty |
| 13 | Credit account | 00000000 |
| 14 | Credit ledger | 000000000000 |
| 15 | Credit VAT code | "3" |
| 16–19 | Credit department, project, object, activity | Empty |
| 20 | Post number | Invoice number (10 digits) |
| 21 | Document type | "01" invoice, "02" credit note |
| 22 | Text | Empty |
| 23 | Amount | Total including VAT, after rounding, in øre (12 digits). Negative for credit notes. |
| 24 | Count | Zeros |
| 25 | Currency amount | Zeros |
| 26 | Currency code | Empty |
| 27 | Payment ID | The invoice's KID |
| 28 | Journal number | 00000 |
| 29 | Customer name | Customer name (35) |
| 30–32 | Customer address 1–3 | The invoice's customer address (35 each) |
| 33 | Customer zip code | Postal code (8) |
| 34 | Customer place | Postal place (27) |
| 35 | Organization number | The 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
Feedback sent
We appreciate your effort and will try to fix the article