Electronic Invoicing with Sproom

Prev Next

Feature Overview

Electronic Invoicing with Sproom connects Business Central to the Sproom e-invoicing service so that posted sales invoices and sales credit memos are delivered as OIOUBL electronic documents — to Danish public-sector bodies and to companies that receive e-invoices. The app does not replace the standard Danish OIOUBL functionality: Business Central still generates the OIOUBL XML. At the moment the standard functionality would save the file, the app takes over and transmits the document to Sproom, either directly through the Sproom REST API (recommended) or by uploading the file to a Sproom FTP folder.

Before the document leaves Business Central, the app can enrich the XML: attachments from the source document, a PDF copy of the printed invoice, Danish FIK payment information, comment lines, values from selected fields on the posted document, and the customer's Your Reference as the order reference. Most options are set once for the company on the Sproom Service Settings page. Attachments can also be overridden per customer through the Document Handling Sending Profiles.

With the API integration, every sent document is logged and its delivery state is retrieved from Sproom automatically by a job queue entry. The Sproom Document Activity Status page shows whether each document was delivered, failed or was rejected. It also shows a plain-language hint about the likely cause and gives a one-click lookup of the recipient in NemHandelsregistret.

Key Facts

Item Details
Main setup page Sproom Service Settings
Monitoring page Sproom Document Activity Status (also opened with the Sproom Document Status action on Posted Sales Invoice and Posted Sales Credit Memo)
Other pages Table Fields, Document Handling Sending Profiles / Document Handling Sending Profile
Supported documents Posted sales invoices and posted sales credit memos (OIOUBL)
Integration types Disabled, Export to API, Export to FTP
Key configuration fields Integration Type, Sproom Url, Token Value, Status Polling Interval (Min), Enable Attachments, Include Invoice as PDF, Payment Means, Apply FIK Suffix Digit, Add Comment Lines, Use Your Ref. as Order Ref. ID
Builds on Microsoft OIOUBL extension (Danish localization) — Create Electronic Invoices / Create Electronic Credit Memos
Works with Abakion App Manager Core (Document Handling Sending Profiles); Abakion Document Handling (Post and send by = Electronic Document / Email And Electronic Document)
Status updates Job queue entry "Sproom Document Status Poller" (API only), default every 15 minutes
Permission set Electronic Invoicing With Sproom

Getting Started

  1. Make sure standard OIOUBL works. Set the GLN on the customer, or the OIOUBL GLN on the sales document, and complete Company Information (GLN, VAT Registration No., address). The app sends the XML that standard OIOUBL produces. If the customer endpoint GLN in that XML is empty, the document is not handed to Sproom.
  2. Open Sproom Service Settings and set Integration Type to Export to API. The API fields become visible.
  3. In Sproom Url, enter the Sproom host only, for example https://sproom.net (production) or https://staging.sproom.net (test). A trailing / or /api is removed automatically.
  4. In Token Value, paste the API token issued by Sproom. The value is masked and stored securely.
  5. Choose Test Connection. A success message confirms the URL and token.
  6. Set Status Polling Interval (Min) (default 15), then choose Setup Status Polling to create the job queue entry that retrieves delivery states.
  7. Optionally, set the enrichment options in the Settings section: Enable Attachments, Include Invoice as PDF, Payment Means, Apply FIK Suffix Digit, Add Comment Lines and Use Your Ref. as Order Ref. ID.
  8. Post a sales invoice and send it. You can use the standard OIOUBL Create Electronic Invoices function on the posted invoice. If Abakion Document Handling is installed, you can instead use Post and Send with Post and send by = Electronic Document on the customer's sending profile. Confirm the request page that appears.
  9. On the Posted Sales Invoice, choose Sproom Document Status to follow the document until its State becomes Delivered.

Note: To use the FTP method instead of the API, set Integration Type to Export to FTP. Then fill in Folder Path, User Name and User Password, and import an optional private key. Delivery status is not tracked in Business Central with FTP.

Related Features

Electronic Invoicing with Sproom depends on Microsoft's OIOUBL extension, which generates the XML that this app enriches and transmits. It uses Abakion App Manager Core for the Document Handling Sending Profiles, where per-customer attachment and preview settings are stored. When Abakion Document Handling is installed, its Post and send by setting adds Electronic Document and Email And Electronic Document, so posting can send the e-invoice and the email in one step. Its Don't show E-mail Preview Dialog setting controls whether the request page is shown during Post and Send. Delivery status is retrieved by a standard Business Central job queue entry.

User Stories

Send a posted sales invoice as an electronic invoice through Sproom

As a accounts receivable clerk
I want to send a posted sales invoice to Sproom as an OIOUBL document
So that public-sector and e-invoicing customers receive it electronically without manual file handling

Setup:

  1. Complete Getting Started steps 1–6.
  2. Open the Posted Sales Invoice and run the standard OIOUBL Create Electronic Invoices function.
  3. On the request page, review Enable Attachments and Include Invoice as PDF, then choose OK.
  4. The app intercepts the generated XML and sends it to Sproom instead of saving the file. The standard OIOUBL completion message is suppressed while Integration Type is not Disabled.

Note: If Sproom rejects the document immediately, an error appears with Sproom's message and validation errors. Where possible, each error ends with a "fix:" hint, for example "Set GLN on the customer" or "Set VAT Registration No. on Company Information".

Send a posted sales credit memo as an electronic credit note

As a accounts receivable clerk
I want to send a posted sales credit memo through Sproom
So that the customer receives the credit electronically, in the same channel as the invoice

Setup:

  1. Open the Posted Sales Credit Memo and run the standard OIOUBL Create Electronic Credit Memos function.
  2. Review Enable Attachments and Include Invoice as PDF on the request page and choose OK.
  3. Follow up on delivery with the Sproom Document Status action on the posted credit memo.

Note: FIK payment means and comment lines are not added to credit memos (see the related stories).

Post and send electronic invoices automatically per customer

As a finance manager
I want to have invoices and credit memos for specific customers sent to Sproom as part of Post and Send
So that e-invoice customers are handled without an extra step after posting

Setup:

  1. Requires Abakion Document Handling.
  2. On the customer, open the Document Handling Sending Profile for invoices or credit memos.
  3. Set Post and send by to Electronic Document, or to Email And Electronic Document to also send the email.
  4. Use Post and Send on the sales document. After posting, the document is sent through the Sproom integration.

Note: When an invoice is posted with Electronic Document or Email And Electronic Document, posting stops with an error if the GLN is missing on both the document and the customer: "Electronic Invoice cannot be created because the GLN is missing on the customer/document."

Connect to Sproom through the REST API

As a consultant
I want to connect Business Central to Sproom through the REST API
So that documents are transmitted directly and their delivery can be tracked

Setup:

  1. Open Sproom Service Settings and set Integration Type to Export to API.
  2. Enter Sproom Url (host only, for example https://sproom.net) and Token Value.
  3. Choose Test Connection.

Note: Use https://staging.sproom.net with a staging token to test before going live.

Connect to Sproom through FTP

As a IT administrator
I want to upload OIOUBL files to a Sproom FTP folder
So that I can keep an existing file-based Sproom agreement

Setup:

  1. Set Integration Type to Export to FTP.
  2. Fill in Folder Path, User Name and User Password. A trailing / is added to the folder path automatically.
  3. Optionally, choose Import Private Key to upload a private key file. Private Key Exists shows whether a key is stored. Export Private Key and Delete Private Key manage it.
  4. Choose Test Connection. Folder Path and User Name must be filled in.

Note: Files are named after the document number (for example 103001.xml). With FTP, no entries are created on Sproom Document Activity Status.

Replace or remove the Sproom API token

As a IT administrator
I want to replace or remove the stored API token
So that an expired or compromised credential can no longer be used

Setup:

  1. On Sproom Service Settings, choose Clear Token and confirm "Remove the stored Sproom API token?".
  2. Enter the new token in Token Value. Once a token is stored, the field shows *****.
  3. Choose Test Connection.

Note: Clearing Token Value has the same effect as Clear Token. If no token is stored, sending and polling fail with "Sproom Token is not configured."

Verify the connection before going live

As a consultant
I want to test the Sproom connection
So that configuration errors are found before the first real invoice is sent

Setup:

  1. On Sproom Service Settings, choose Test Connection.
  2. With API, the app calls Sproom's health check with the stored URL and token. With FTP, it tests the folder and credentials.
  3. A success message reads "The connection test was successful. The settings are valid." Otherwise, the error from Sproom or the FTP service is shown.
Schedule automatic delivery-status updates

As a IT administrator
I want to have delivery states retrieved from Sproom on a schedule
So that users can see whether documents reached the recipient without checking the Sproom portal

Setup:

  1. On Sproom Service Settings, set Status Polling Interval (Min) (minimum 1, default 15).
  2. Choose Setup Status Polling. This creates a recurring job queue entry, "Sproom Document Status Poller", that runs every day of the week and is set to Ready. If the entry already exists, its interval is updated and it is set to Ready.
  3. Each run checks every logged document that has not reached a final status.

Note: After you change the interval, choose Setup Status Polling again to update the job queue entry.

Monitor delivery of sent documents

As a accounts receivable clerk
I want to see the current delivery state of every document sent through the API
So that I can follow up on invoices that did not arrive

Setup:

  1. Open Sproom Document Activity Status, or choose Sproom Document Status on a posted invoice or credit memo to see only that document.
  2. Review BC Document No., BC Document Type, Sent Date/Time, Sent By User Id, State, Code, Message, Status Date/Time and Last Polled Date/Time.
  3. Is Final Status is set when State becomes Delivered, Failed or Rejected. These documents are no longer polled.
Understand why a document failed or was rejected

As a accounts receivable clerk
I want to get a suggested cause for a failed delivery
So that I can fix the issue without contacting Sproom support

Setup:

  1. On Sproom Document Activity Status, read the Hint column for the document.
  2. The hints cover four cases:
    • The recipient identifier is not recognized: verify the GLN/CVR and the registration in NemHandelsregistret.
    • The receiving endpoint rejected the document: contact the recipient.
    • The sender in the XML does not match the company bound to the token: align CVR/GLN in Company Information with the Sproom account.
    • A generic failed/rejected hint.
  3. Correct the cause and send the document again from the posted document.
Check the recipient in NemHandelsregistret

As a accounts receivable clerk
I want to open the recipient's registration directly from a failed status
So that I can see whether the customer can receive this document type

Setup:

  1. On Sproom Document Activity Status, select the failed document.
  2. Choose Look Up Recipient. The app reads the recipient identifier from Message and opens NemHandelsregistret for GLN or CVR identifiers.
  3. If no identifier is found, or the scheme is not GLN/CVR, a message explains this and points to https://registration.nemhandel.dk/.
Refresh delivery status on demand

As a accounts receivable clerk
I want to refresh the status immediately
So that I do not have to wait for the next scheduled poll

Setup:

  1. On Sproom Document Activity Status, choose Refresh Now to poll the selected document.
  2. Choose Refresh All Pending to poll every document that has not reached a final status.
Review warnings returned when a document was accepted

As a finance controller
I want to see non-blocking warnings that Sproom returned at send time
So that I can correct data issues before they cause problems at the recipient

Setup:

  1. On Sproom Document Activity Status, review the Send Warnings column.
  2. The document was accepted by Sproom. The warnings show issues to review, such as data that should be corrected on future documents.
Include attachments from the source document

As a billing administrator
I want to embed the files attached to the sales document in the electronic invoice
So that the customer receives supporting documents in the same delivery

Setup:

  1. On Sproom Service Settings, set Enable Attachments to From Source Document.
  2. When sending, the request page's Enable Attachments field is pre-filled with this value and can be changed for the run.
  3. Each attachment is embedded in the XML as an additional document reference.

Note: All embedded attachments are declared as PDF in the XML, so attach PDF files.

Use different attachment settings per customer

As a finance manager
I want to decide per customer whether attachments are embedded
So that only customers who want attachments receive them

Setup:

  1. Open Document Handling Sending Profiles from the customer card or list.
  2. Create or open the profile for the customer with Document Type (Usage) Sales Invoice or Sales Credit Memo.
  3. In the Electronic Invoicing with Sproom group, set Enable Attachments with Electronic Invoice.
  4. When a profile exists for the sell-to customer and document type, it replaces the Enable Attachments value from Sproom Service Settings.

Note: The Sproom fields can only be edited on profiles for sales invoices and sales credit memos. They are cleared if the usage is changed to another document type. Without Document Handling, the profile list shows only invoice and credit memo profiles.

Embed the printed invoice as a PDF

As a accounts receivable clerk
I want to include the printed invoice or credit memo as a PDF in the electronic document
So that the recipient can see the familiar layout alongside the structured data

Setup:

  1. On Sproom Service Settings, select Include Invoice as PDF.
  2. In Report Selection - Sales, make sure the invoice (or credit memo) report line has Use for Email Attachment selected. Each such report is rendered as a PDF and embedded.
  3. The request page's Include Invoice as PDF field is pre-filled and can be changed per run.
Add FIK payment information to electronic invoices

As a finance manager
I want to send FIK payment details in the electronic invoice
So that Danish customers can pay with a FIK 71 reference that matches automatically

Setup:

  1. On Company Information, fill in the bank creditor number used for FIK, Bank Account No., Bank Branch No., Bank Name and SWIFT Code.
  2. On Sproom Service Settings, set Payment Means to FIK Payment Means.
  3. The app replaces the payment means in the XML with a FIK section: channel DK:FIK, payment ID 71, the invoice due date, a Payment Instruction ID built from the invoice number (zero-padded to 15 digits including a Modulus 10 check digit), and the creditor number.

Note: FIK is added to sales invoices only. Use Standard Payment Means to keep the payment information generated by standard OIOUBL.

Insert an extra digit in the FIK payment reference

As a finance manager
I want to add a fixed digit between the invoice number and the check digit
So that the FIK reference matches the format agreed with our bank

Setup:

  1. With Payment Means = FIK Payment Means, enter one character in Apply FIK Suffix Digit.
  2. The Payment Instruction ID is built from the invoice number followed by this digit, zero-padded, with the Modulus 10 check digit calculated over the result.

Note: The Payment Instruction ID must be numeric. Posted invoice numbers that contain letters cannot produce a valid FIK reference.

Carry comment lines into the electronic invoice

As a sales coordinator
I want to keep description-only lines from the invoice in the electronic document
So that the customer sees the same explanatory text as on the printed invoice

Setup:

  1. On Sproom Service Settings, select Add Comment Lines.
  2. When an invoice is sent, the app rebuilds the invoice lines in document order. Lines with a blank type are added as zero-amount lines with quantity 1 and the line description. They use the VAT setup of the first non-comment line.

Note: In version 28.2, comment lines are added to sales invoices only. Credit memos are sent with the standard OIOUBL lines.

Send selected document fields as notes

As a consultant
I want to include values from chosen fields on the posted invoice or credit memo header as notes in the XML
So that the recipient receives extra information, such as a project or contract reference

Setup:

  1. On Sproom Service Settings, choose Table Fields.
  2. Add a line with Table No. = the posted sales invoice header or posted sales credit memo header table, then pick the field in Field Name.
  3. When the document is sent, each configured field value is added as a note in the document header. FlowFields are calculated, and long text (BLOB) fields are included as text.
Send the customer's reference as the order reference

As a accounts receivable clerk
I want to use the Your Reference value as the order reference on the electronic document
So that customers who match invoices against their own requisition or PO number can process them automatically

Setup:

  1. On Sproom Service Settings, select Use Your Ref. as Order Ref. ID.
  2. On the sales document, fill in Your Reference.
  3. When the invoice or credit memo is sent, the order reference ID is replaced with Your Reference. If Your Reference is empty, the posted document number is kept.

Note: Independently of this setting, sales invoices always carry Your Reference as the customer reference within the order reference.

Adjust settings on the electronic invoice request page

As a accounts receivable clerk
I want to change attachment and PDF options for a single sending
So that exceptions can be handled without changing the company setup

Setup:

  1. Run Create Electronic Invoices or Create Electronic Credit Memos, or use Post and Send with the dialog shown.
  2. On the request page, change Enable Attachments and/or Include Invoice as PDF. The defaults come from the customer's sending profile (attachments) and Sproom Service Settings.
  3. Choose OK. The choices apply only to this run.

Note: During Post and Send, the request page is skipped when Don't show E-mail Preview Dialog is selected on the Document Handling Sending Profile. It is then sent with the default values. Sproom Service Settings and the sending profile also have a Don't show Electronic Invoice Preview Dialog field.

Temporarily stop sending to Sproom

As a IT administrator
I want to stop sending documents to Sproom without uninstalling the app
So that I can pause e-invoicing during a migration or test

Setup:

  1. On Sproom Service Settings, set Integration Type to Disabled.
  2. Electronic documents are no longer sent to Sproom, and the standard OIOUBL behavior and messages apply again.
Give users access after installation

As a IT administrator
I want to make sure users can work with the app after installation
So that invoicing is not blocked by missing permissions

Setup:

  1. Install the app as a user with SUPER (sandbox), or with SUPER or user-management rights (production). The permission set Electronic Invoicing With Sproom is then assigned to all existing users automatically.
  2. Assign Electronic Invoicing With Sproom to users created later.

Field Reference

Field name Where to find it What it does Default value
Integration Type Sproom Service Settings Selects how documents are sent: Disabled, Export to FTP or Export to API. Disabled
Folder Path Sproom Service Settings (FTP) Folder on the Sproom FTP server where XML files are uploaded. Blank
User Name Sproom Service Settings (FTP) User name for the FTP connection. Blank
User Password Sproom Service Settings (FTP) Password for the FTP connection (masked). Blank
Private Key Exists Sproom Service Settings (FTP) Shows whether a private key file is stored (read-only). No
Sproom Url Sproom Service Settings (API) Base address of the Sproom service, host only. Blank
Token Value Sproom Service Settings (API) Sproom API bearer token, stored securely and shown masked. Blank
Status Polling Interval (Min) Sproom Service Settings (API) Minutes between runs of the status polling job queue entry. 15
Enable Attachments Sproom Service Settings Company default for embedding attachments from the source document. Blank (none)
Include Invoice as PDF Sproom Service Settings Embeds the printed invoice/credit memo as a PDF in the electronic document. No
Don't show Electronic Invoice Preview Dialog Sproom Service Settings Company setting intended to send documents without showing the request page. No
Payment Means Sproom Service Settings Standard Payment Means keeps OIOUBL's payment data; FIK Payment Means adds a FIK section to invoices. Standard Payment Means
Apply FIK Suffix Digit Sproom Service Settings Optional digit between the document number and check digit in the FIK Payment Instruction ID. Blank
Add Comment Lines Sproom Service Settings Includes description-only lines as zero-amount lines on electronic invoices. No
Use Your Ref. as Order Ref. ID Sproom Service Settings Replaces the order reference ID with Your Reference when it is filled in. No
Table No. Table Fields Table (posted invoice or credit memo header) whose field is sent as a note. Blank
Table Name Table Fields Name of the selected table (read-only). —
Field Name Table Fields Field whose value is added as a note in the XML header. Blank
Document Type Document Handling Sending Profiles / Document Handling Sending Profile Sales Invoice or Sales Credit Memo the profile applies to (shown when Document Handling is not installed). —
Don't show Electronic Invoice Preview Dialog Document Handling Sending Profiles / Document Handling Sending Profile Per-customer setting intended to send without showing the request page. No
Enable Attachments with Electronic Invoice Document Handling Sending Profiles / Document Handling Sending Profile Per-customer override of the Enable Attachments setting. Blank (none)
Enable Attachments Create Electronic Invoices / Create Electronic Credit Memos request page Attachment option for this run. From profile or Sproom Service Settings
Include Invoice as PDF Create Electronic Invoices / Create Electronic Credit Memos request page PDF option for this run. From Sproom Service Settings
BC Document No. Sproom Document Activity Status Posted document that was sent. —
BC Document Type Sproom Document Activity Status Sales Invoice or Sales Credit Memo. —
Sent Date/Time Sproom Document Activity Status When the document was sent to Sproom. —
Sent By User Id Sproom Document Activity Status User who sent the document. —
State Sproom Document Activity Status Latest delivery state from Sproom, such as Delivered, Failed or Rejected. Blank until polled
Code Sproom Document Activity Status Latest status code from Sproom; holds the error code on failures. Blank until polled
Message Sproom Document Activity Status Latest status message from Sproom, including rejection reasons. Blank until polled
Hint Sproom Document Activity Status Suggested cause and where to look, based on Code/Message/State. —
Status Date/Time Sproom Document Activity Status When Sproom last changed the document's state. —
Last Polled Date/Time Sproom Document Activity Status When Business Central last asked Sproom for the status. —
Is Final Status Sproom Document Activity Status Set when the state is Delivered, Failed or Rejected; polling then stops. No
Send Warnings Sproom Document Activity Status Non-blocking warnings returned by Sproom when the document was accepted. Blank
Sproom Document Id Sproom Document Activity Status (hidden by default) Sproom's identifier for the sent document. —