Xledger integration

Modified on Thu, 5 Nov at 12:04 PM

How the integration works

The integration connects Project Flow to Xledger:

  • Project Flow → Xledger: customers and projects, through the Xledger API (GraphQL).
  • Xledger → Project Flow: project expenses from posted general ledger transactions, through the Xledger SOAP service.

Invoices aren't transferred by this integration. To get invoices into Xledger, use one of the file exports Xledger (AR10) or Xledger (GL02b). Each one has its own article. Payments aren't transferred back from Xledger.

Project Flow is the master. Customer numbers and project numbers come from Project Flow. Don't change them in Xledger.



What is synchronized

From Project Flow to Xledger

DataWhenHow it is matched in Xledger
CustomersWhen a customer is created or changed, when one of its projects is saved, and when one of its invoices is finalizedAs a Company, by organization number, and a Customer, by customer number
ProjectsWhen a project is created or changed, and when one of its invoices is finalizedBy project number

Customers

  • What is sent: name (up to 50 characters), customer number, organization number, email, phone, address and postal code.
  • Not transferred: inactive customers, and contacts that aren't marked as customers.

Projects

  • What is sent: project number, name, external project number, the invoice's customer reference and order reference, project comment, invoice text, footer text, start date, end date and department (as cost center).
  • Not transferred: template projects, and projects whose customer is inactive.


From Xledger to Project Flow

With Import expenses turned on, Project Flow fetches general ledger transactions from Xledger and registers them as project expenses:

  • Which transactions: those posted on the account codes you list, with a project number that exists in Project Flow.
  • What each expense gets: the transaction date, text, amount, currency and exchange rate, supplier, voucher number, and PDF attachments from the voucher.
  • No duplicates. The same transaction is never imported twice. A transaction that is changed in Xledger after it was imported isn't updated in Project Flow.



Set up the integration

Step 1: Get the credentials from Xledger

Ask your Xledger contact for a user with API access. You need:

  • An API key for the Xledger GraphQL API. You generate it with the API user in Xledger. When you do, Xledger also shows how many requests per hour your plan allows.
  • SOAP credentials: user name, password and owner code. You only need these to import expenses.


Step 2: Configure the integration in Project Flow

Go to Setup → Settings → Integrations, click + Create integration and choose Xledger.

Export to Xledger

Field (EN / NB)Description
API keyThe API key for the Xledger GraphQL API. Required.
Export customers / Eksporter kunderTransfer customers.
Export projects / Eksporter prosjekterTransfer projects. When this is on, you also choose Department.
Department / AvdelingWhich department to send as cost center: Do not include department (default), Use department from project or Use project tag group. The department number must exist as a cost center in Xledger.

SOAP integration (only needed to import expenses)

Field (EN / NB)Description
User name / BrukernavnThe Xledger user for the SOAP service.
Password / PassordOnly needed if you don't have a SOAP logon key. After the first import, Project Flow replaces the password with a SOAP logon key and removes the password.
SOAP logon key / SOAP-påloggingsnøkkelNormally filled in automatically from the password. Leave it empty if you don't have a key.
Owner code / Eier kodeThe code that identifies your company in Xledger, for example 5000.

Import from Xledger

Field (EN / NB)Description
Import expenses / Importere utleggImport project expenses from Xledger.
Account codes / KontokoderA comma-separated list of expense accounts, for example 4300, 4301, 4309. If you leave it empty, transactions on all accounts with a project number are imported.
Expense activity / UtleggsaktivitetThe activity imported expenses are registered on. The default is Imported expenses. It is created on the project if it doesn't exist.
Make imported expenses billable / Importerte utlegg markeres som fakturerbareMarks imported expenses as billable, unless the project's price model decides otherwise.

Notifications

FieldDescription
Co-workers to notify / Emails to notifyWho gets an e-mail when customers or projects can't be transferred, or expenses can't be imported.

Tick Enabled and save.

  • Nothing happens on save. Project Flow doesn't contact Xledger when you save. The first customer or project you save afterwards is transferred, and expenses are fetched at the next import.
  • Project Flow plan. The Xledger integration isn't available on the Start plan.


Step 3: Align the setup in both systems

  • Accounts and VAT codes. The account numbers and VAT codes used in Project Flow must match the ones in Xledger.
  • Departments. If you send departments, the department numbers in Project Flow must exist as cost centers in Xledger.



Request limit in Xledger

Xledger limits how many API requests an integration can make per hour, depending on your Xledger plan. Project Flow sends at most about two requests per second.

  • When Xledger is busy. If Xledger answers that the limit is reached, or that it is temporarily unavailable, Project Flow automatically tries again, waiting longer each time, for up to about an hour.
  • Many changes at once. If you change very many customers or projects at once, some may still not be transferred. Save them again later.



Expense import in detail

  • Schedule. Project Flow fetches new and changed transactions from Xledger regularly during the day. Each run looks at transactions changed in the last days.
  • Older transactions. An administrator can fetch them under Setup → Tools → Import → Import expenses, by entering how many days back to fetch.
  • Rows that aren't imported: transactions without a project number, and transactions whose project number doesn't exist in Project Flow.
  • Attachments: only PDF attachments are fetched.



Verify the integration

  1. Customer: create or change a test customer in Project Flow. Check that it appears in Xledger with the same customer number.
  2. Project: create a project and check that it appears in Xledger with the same project number.
  3. Expense: if you import expenses, post a transaction with the project number on one of the account codes in Xledger. Check that it appears on the project in Project Flow after the next import.



Check the log

Go to Company → Logs and choose the category Xledger:

MessageMeaning
"Customer #N was not exported because it is inactive"The customer is inactive in Project Flow.
"Imported … into project N. X attachment(s) added."Expenses were imported.
"Couldn't find project by project number …"A transaction in Xledger has a project number that doesn't exist in Project Flow.
"Project expense import failed (…)"The expense import failed. Check the user name, password or SOAP logon key, and the owner code.

No e-mail when the import can't connect. If the expense import can't connect to Xledger at all, this is only shown in the log, so check it if expenses stop coming in.



Q&A

Q: How do I get invoices into Xledger?

A: With one of the file exports Xledger (AR10) or Xledger (GL02b). This integration only transfers customers and projects, and imports expenses.

Q: A customer or project wasn't transferred to Xledger.

A: Check that Export customers or Export projects is on, and that the customer is active. If many changes were made at once, Xledger's request limit may have been reached. Save the customer or project again later.

Q: An expense posted in Xledger is missing in Project Flow.

A: Check three things:

  • The transaction has a project number that exists in Project Flow.
  • It is on one of the Account codes.
  • It was changed within the import window. To fetch older transactions, use Setup → Tools → Import → Import expenses.

Q: Do payments come back from Xledger?

A: No. Register payments in Project Flow, or use the Nets OCR import if you use KID.

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