Skip to main content

Integration with AFAS Profit

Read here how to realise the integration between Zenvoices and AFAS Profit

Written by Jèsel Broekema
Updated this week

This manual describes the steps required to connect Zenvoices to an AFAS Profit (online) environment. These steps only need to be performed once per AFAS environment. If there are multiple subscriptions, a separate integration must be created for each subscription.

This manual is intended for administrators of AFAS Profit. If you need support with the installation, please contact us.

Settings in AFAS

A. Preparation

New AFAS environment?

If the environment in AFAS is new, we recommend first processing a number of bookings manually in AFAS. If applicable, make use of allocation axes. By doing this in advance, any errors will immediately become visible and can be resolved. This ensures that the integration with Zenvoices is set up correctly and without errors.

Autonumber

Make sure that autonumbering of creditors and/or debtors is enabled. This is required if you want to create creditors and/or debtors from Zenvoices. Go to General | Setup | Number settings | Autonumbering, and enable ‘Use default autonumbering’ for purchase account and/or sales account.

B. Create connector user

Create a system user in AFAS that can be used for the integration:

  1. Go to General | Manage | Authorisation tool.

  2. Go to the tab Maintain users and click ‘New system user’.

  3. Enter a username and description (e.g. ‘Zenvoices’) and click ‘Next’. The user must start with the participant number.

    Example: if your AFAS Online username is AOL\12345.admin then 12345 is the participant number.

  4. Enable ‘Profit Windows’ and click ‘Next’.

  5. Optionally enter the email address and click ‘Next’.

  6. Enter the initial password and click ‘Next’ and then ‘Finish’.

C. Import GetConnectors

The following GetConnectors must be imported in AFAS:

  • Zenvoices_AdministrationDetails

  • Zenvoices_AllocationCodeAssignments

  • Zenvoices_Commitments

  • Zenvoices_Countries

  • Zenvoices_Currencies

  • Zenvoices_Customers

  • Zenvoices_Journals

  • Zenvoices_LedgerAccounts

  • Zenvoices_Items

  • Zenvoices_PaymentConditionsZenvoices_Periods

  • Zenvoices_Projects

  • Zenvoices_ProjectStages

  • Zenvoices_Reviewers

  • Zenvoices_SupplierInvoices

  • Zenvoices_Suppliers

  • Zenvoices_TaxCodes

  • Zenvoices_TaxRateGroups

Click here to go to the page to download the GetConnectors. You can then import the connectors in AFAS as follows:

  1. Go to General | Output | Manage | GetConnector.

  2. Click ‘More actions’ and then ‘Import’ and select the folder with the connectors. Via ‘Network | tsclient’ you can access your local computer. (If you do not see the ‘Import’ button, you may not have the required permissions. Then click here for an AFAS instruction)

  3. Click ‘Finish’.

Points of attention when importing the GetConnectors:

  • If your AFAS version does not support currencies, an error message will appear when importing the connector Zenvoices_Currencies. This message can be ignored.

  • If your AFAS version does not support projects, an error message will appear when importing the connectors Zenvoices_Projects, Zenvoices_ProjectStages and Zenvoices_Items. This message can be ignored.

  • If your AFAS version does not support allocation, an error message will appear when importing the connector Zenvoices_AllocationCodeAssignments. This message can be ignored.

  • If your AFAS version does not support commitments, an error message will appear when importing the connector Zenvoices_Commitments. This message can be ignored.

D. Create AppConnector

Now that the connectors have been imported, you can create the Zenvoices AppConnector:

  1. Go to General | Manage | App Connector.

  2. Click ‘New’.

  3. Enter ‘Zenvoices’ in the description.

  4. Choose ‘Classic token’ as authentication type (from Profit 6).

  5. Choose the user group ‘All Profit users (Everyone)’.

    Do you not see this group directly? Click ‘Show all’ (like shown in the image below) to make this option visible.

6. Click ‘Next’. (Continues at step E)

E. Add Get- & Update connectors

  1. Open the properties of the AppConnector if this window is not already open.

  2. Go to the tab ‘GetConnectors’.

  3. Click ‘New’.

  4. Select the required GetConnectors (see list at step C).

  5. Go to the tab ‘UpdateConnectors’.

  6. Click ‘New’.

  7. Select the following connectors:

  • KnSubject

  • FiEntries

  • KnPurchaseRelationOrg

  • KnSalesRelationOrg

  • FiInvoice

F. Create user token

  1. Open the properties of the AppConnector if this window is not already open.

  2. Go to the tab ‘User tokens’.

  3. Click ‘New’.

  4. Select the user created in step B and enter ‘Zenvoices integration’ as description.

  5. Click ‘Next’.

  6. Copy the generated token, store it temporarily (you will need it for the configuration of Zenvoices) and keep it in a safe place.

    please note: the token cannot be retrieved again in AFAS. If you forget the token, you must delete the old token and create a new one.

  7. Click ‘Finish’.

Add accounting integration in Zenvoices

For each AFAS environment, add an accounting integration in Zenvoices:

  1. Go in Zenvoices to Manage | Environment | Accounting integrations.

  2. Click ‘New accounting integration’.

  3. Choose ‘AFAS’.

  4. Enter the token generated in the previous step in the field ‘Token’.

  5. Enter your AFAS Online participant number.

    Example: if your AFAS Online username is AOL\12345.admin then 12345 is the participant number.

  6. Zenvoices connects by default to an AFAS production environment. Do you want to connect to an AFAS accept or test environment? Disable ‘AFAS Online’ and enter in API URL:

    Replace [participantnumber] with your participant number.

  7. Click ‘Next’.

  8. Choose a unique name for the accounting system. If you want to connect multiple AFAS environments to Zenvoices, it is recommended to include the environment name in the accounting system name.

  9. Click ‘Next’.

  10. Select the administrations from your AFAS environment that you want to connect to Zenvoices.

  11. Click ‘Next’.

  12. Choose which journals you want to process in Zenvoices.

  13. Click ‘Finish’ to complete the integration and you can get started.

Error messages

Are you encountering error messages? First process a booking manually in AFAS. It is possible that an error message appears that is related to the error during the integration.

  • If the booking does show errors: resolve these first in AFAS before continuing.

  • If the booking can be processed without errors: take a full screenshot of the booking in AFAS and send it to support@zenvoices.com. Our support team will investigate this further in the background.

Did this answer your question?